Point2d.SquaredDistance Method

Returns the suqared distance between this point and another. This is faster than computing the actual distance since it saves a square root calculation.
public double SquaredDistance( 
   Point2d p 
)

Parameters

p
Point2d

The point compute distance from.

Return Value

double

A squared distance between points.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition