Point3::DistanceSquared

Point3::DistanceSquared
SF_INLINE T DistanceSquared(T x2, T y2, T z2) const;
SF_INLINE T DistanceSquared(const Point3<T> & pt) const;
SF_INLINE T DistanceSquared() const;
Description

DistanceSquared calculates the distance squared between two points.

Parameters
Parameters 
Description 
T x2 
The x coordinate of the point whose distance squared to the current Point3 will be calculated. 
T y2 
The y coordinate of the point whose distance squared to the current Point3 will be calculated. 
T z2 
The z coordinate of the point whose distance squared to the current Point3 will be calculated. 
const Point3<T> & pt 
A point whose distance to the current point will be calculated. 
Return Value

A value containing the distance squared between two points.