public static XPoint3 Cross(XPoint3 p1, XPoint3 v2) { return(new XPoint3(p1.Y * v2.Z - p1.Z * v2.Y, p1.Z * v2.X - p1.X * v2.Z, p1.X * v2.Y - p1.Y * v2.X)); }
public static int Dot(XPoint3 p1, XPoint3 p2) { return(p1.X * p2.X + p1.Y * p2.Y + p1.Z * p2.Z); }