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; }
public float DotProduct(Vector4f other) { return X * other.X + Y * other.Y + Z * other.Z; }