Point3::Distance

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

Distance calculates the distance between the current point and the passed point.

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

A value containing the calculated distance.