Exemplo n.º 1
0
 public Vector4f CrossProduct(Vector4f other)
 {
     Vector4f ret = new Vector4f();
     ret.X = Y * other.Z - other.Y * Z;
     ret.Y = Z * other.X - other.Z * X;
     ret.Z = X * other.Y - other.X * Y;
     return ret;
 }
Exemplo n.º 2
0
 public float DotProduct(Vector4f other)
 {
     return X * other.X + Y * other.Y + Z * other.Z;
 }