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 Function SquaredDistance( _ 
ByVal p As Point2d
) As Double
This language is not supported or no code example is available.
public double SquaredDistance( 
Point2d p 
)
This language is not supported or no code example is available.
public:  
double SquaredDistance( 
Point2d^ p 
)
This language is not supported or no code example is available.
public function SquaredDistance( 
p : Point2d 
) : double;
This language is not supported or no code example is available.

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