Method GetDistanceSquaredTo
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
GetDistanceSquaredTo(GeoPoint3, GeoPoint3)
Calculates the squared distance between two points.
public static double GetDistanceSquaredTo(GeoPoint3 p1, GeoPoint3 p2)
Parameters
Returns
Remarks
Comparing squared distances avoids a square root, which matters in the loops that scan every vertex or edge of a shape looking for the nearest one.