daily update on 20230309 by nitload youmu
This commit is contained in:
@@ -20,23 +20,23 @@ namespace StgSharp.Math
|
||||
[FieldOffset(12)]
|
||||
public float W;
|
||||
|
||||
|
||||
[FieldOffset(0)]
|
||||
public Vec2D Point1;
|
||||
[FieldOffset(8)]
|
||||
public Vec2D Point2;
|
||||
|
||||
public Vec4D(float x,float y,float z,float w)
|
||||
|
||||
public Vec4D(float a1,float a2,float a3,float a4)
|
||||
{
|
||||
Point1 = new Vec2D();
|
||||
Point2 = new Vec2D();
|
||||
Point1= default(Vec2D);
|
||||
Point2= default(Vec2D);
|
||||
|
||||
X = x;
|
||||
Y = y;
|
||||
Z = z;
|
||||
W = w;
|
||||
X = a1;
|
||||
Y = a2;
|
||||
Z = a3;
|
||||
W = a4;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public Vec4D(Vec2D p1,Vec2D p2)
|
||||
{
|
||||
X= 0;
|
||||
@@ -47,6 +47,7 @@ namespace StgSharp.Math
|
||||
Point1= p1;
|
||||
Point2 = p2;
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
@@ -71,9 +72,10 @@ namespace StgSharp.Math
|
||||
}
|
||||
else
|
||||
{
|
||||
return
|
||||
this.Point1 == other.Point1
|
||||
&& this.Point2 == other.Point2;
|
||||
return this.X == other.X
|
||||
&& this.Y == other.Y
|
||||
&& this.Z == other.Z
|
||||
&& this.W == other.Z;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,7 +86,7 @@ namespace StgSharp.Math
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{X}\t{Y}\t{Y}\t{Y}";
|
||||
return $"{X}\t{Y}\t{Z}\t{W}";
|
||||
}
|
||||
|
||||
public static bool operator ==(Vec4D vec1, Vec4D vec2)
|
||||
|
||||
Reference in New Issue
Block a user