M_Rhino_Geometry_Point3d_DistanceToSquared - mcneel/rhinocommon-api-docs GitHub Wiki

Point3d.DistanceToSquared Method

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

Syntax

C#

public double DistanceToSquared(
	Point3d other
)

VB

Public Function DistanceToSquared ( 
	other As Point3d
) As Double

Parameters

 

other
Type: Rhino.Geometry.Point3d
Other point for squared distance measurement.

Return Value

Type: Double
The squared length of the line between this and the other point; or 0 if any of the points is not valid.

Version Information

Supported in: 6.0.16224.21491

See Also

Reference

Point3d Structure
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️