Example #1
0
 public static SVector3 Cross(SVector2 a, SVector2 b)
 {
     return(a.Cross(b));
 }
Example #2
0
 public SVector3 Cross(SVector2 b)
 {
     return(new SVector3((Fix64)0, (Fix64)0, x * b.y - y * b.x));
 }
Example #3
0
 public Fix64 Dot(SVector2 other)
 {
     return(other.x * x + other.y * y);
 }
Example #4
0
 public static Fix64 Dot(SVector2 a, SVector2 b)
 {
     return(a.Dot(b));
 }
Example #5
0
 public void Add(SVector2 b)
 {
     this.x += b.x;
     this.y += b.y;
 }