Computes the square of the distance between two points.
This method is usually largely faster than DistanceTo().
RhinoCommon (in RhinoCommon.dll)
public double DistanceToSquared(
Public Function DistanceToSquared (
other As Point3d
) As Double
- Type: Rhino.GeometryPoint3d
Other point for squared distance measurement.
The squared length of the line between this and the other point; or 0 if any of the points is not valid.