Code cleanup.
This commit is contained in:
@@ -206,12 +206,8 @@ namespace Cryville.Crtr {
|
||||
public float Value;
|
||||
|
||||
public Vec1() { Value = 0; }
|
||||
public Vec1(float[] v) {
|
||||
Value = v[0];
|
||||
}
|
||||
public Vec1(float i) {
|
||||
Value = i;
|
||||
}
|
||||
public Vec1(float[] v) { Value = v[0]; }
|
||||
public Vec1(float i) { Value = i; }
|
||||
|
||||
public override byte Dimension { get { return 1; } }
|
||||
|
||||
@@ -257,12 +253,8 @@ namespace Cryville.Crtr {
|
||||
public int Value;
|
||||
|
||||
public VecI1() { Value = 0; }
|
||||
public VecI1(float[] v) {
|
||||
Value = (int)Math.Round(v[0]);
|
||||
}
|
||||
public VecI1(int i) {
|
||||
Value = i;
|
||||
}
|
||||
public VecI1(float[] v) { Value = (int)v[0]; }
|
||||
public VecI1(int i) { Value = i; }
|
||||
|
||||
public override byte Dimension { get { return 1; } }
|
||||
|
||||
@@ -308,12 +300,8 @@ namespace Cryville.Crtr {
|
||||
public float Value;
|
||||
|
||||
public Vec1m() { Value = 1; }
|
||||
public Vec1m(float[] v) {
|
||||
Value = v[0];
|
||||
}
|
||||
public Vec1m(float i) : base() {
|
||||
Value = i;
|
||||
}
|
||||
public Vec1m(float[] v) { Value = v[0]; }
|
||||
public Vec1m(float i) : base() { Value = i; }
|
||||
|
||||
public override byte Dimension { get { return 1; } }
|
||||
|
||||
@@ -359,12 +347,8 @@ namespace Cryville.Crtr {
|
||||
float x, y;
|
||||
|
||||
public Vec2() { x = y = 0; }
|
||||
public Vec2(float[] v) {
|
||||
x = v[0]; y = v[1];
|
||||
}
|
||||
public Vec2(float x, float y) {
|
||||
this.x = x; this.y = y;
|
||||
}
|
||||
public Vec2(float[] v) { x = v[0]; y = v[1]; }
|
||||
public Vec2(float x, float y) { this.x = x; this.y = y; }
|
||||
|
||||
public override byte Dimension { get { return 2; } }
|
||||
|
||||
@@ -419,12 +403,8 @@ namespace Cryville.Crtr {
|
||||
float x, y, z;
|
||||
|
||||
public Vec3() { x = y = z = 0; }
|
||||
public Vec3(float[] v) {
|
||||
x = v[0]; y = v[1]; z = v[2];
|
||||
}
|
||||
public Vec3(float x, float y, float z) {
|
||||
this.x = x; this.y = y; this.z = z;
|
||||
}
|
||||
public Vec3(float[] v) { x = v[0]; y = v[1]; z = v[2]; }
|
||||
public Vec3(float x, float y, float z) { this.x = x; this.y = y; this.z = z; }
|
||||
|
||||
public override byte Dimension { get { return 3; } }
|
||||
|
||||
|
Reference in New Issue
Block a user