public float DistanceTo(Point3f other) { return((float)Math.Sqrt( Math.Pow(X - other.X, 2) + Math.Pow(Y - other.Y, 2) + Math.Pow(Z - other.Z, 2))); }
public double DistanceTo(Point3f other) { return(Math.Sqrt( Math.Pow(X - other.X, 2) + Math.Pow(Y - other.Y, 2) + Math.Pow(Z - other.Z, 2))); }
public static Vector3d Subtract(Point3f point1, Point3f point2) { return(new Vector3d(point1.m_x - point2.m_x, point1.m_y - point2.m_y, point1.m_z - point2.m_z)); }