Point::DistanceSquared

Point::DistanceSquared
inline T DistanceSquared(T x2, T y2) const;
inline T DistanceSquared(const Point<T> & pt) const;
inline T DistanceSquared() const;
Description

DistanceSquared calculates the distance squared between two points using the equation:

   (x2-x)^2 + (y2-y)^2
Parameters
Parameters 
Description 
T x2 
The x coordinate of the point whose infinite distance to the current Point will be calculated. 
T y2 
The y coordinate of the point whose infinite distance to the current Point will be calculated. 
const Point<T> & pt 
A Point parameter whose x and y coordinates will act as x2 and y2 respectively in the equation above. 
Return Value

A value containing the distance squared between two points.