M_Rhino_Geometry_Point3d_DistanceToSquared - mcneel/rhinocommon-api-docs GitHub Wiki
Computes the square of the distance between two points. This method is usually largely faster than DistanceTo().
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public double DistanceToSquared(
Point3d other
)
VB
Public Function DistanceToSquared (
other As Point3d
) As Double
- other
- Type: Rhino.Geometry.Point3d
Other point for squared distance measurement.
Type: Double
The squared length of the line between this and the other point; or 0 if any of the points is not valid.
Supported in: 6.0.16224.21491