Пример #1
0
 public Vector3F(Vector3I other)
 {
     X = other.X;
     Y = other.Y;
     Z = other.Z;
 }
Пример #2
0
 public float Dot(Vector3I b)
 {
     return((X * b.X) + (Y * b.Y) + (Z * b.Z));
 }
Пример #3
0
 public Vector3F Cross(Vector3I b)
 {
     return(new Vector3F((Y * b.Z) - (Z * b.Y),
                         (Z * b.X) - (X * b.Z),
                         (X * b.Y) - (Y * b.X)));
 }
Пример #4
0
 public int CompareTo(Vector3I other)
 {
     return(Math.Sign(LengthSquared - LengthSquared));
 }