Point::Angle

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

Angle calculates the angle, in radians, between the current Point and a passed point. 

The following expression is used to determine the result:

   arctangent of (y2 - y) / (x2 - x);

implemented as:

   atan2(y2-y, x2-x).
Parameters
Parameters 
Description 
T x2 
The x-coordinate of the point parameter passed in. 
T y2 
The y-coordinate of the point parameter passed in. 
const Point<T> & pt 
A point parameter: the angle between pt and the Point variable will be calculated. 
Return Value

A value containing the angle, in radians, between the current point and passed point.