Angle


Return angle between vectors/quaternions.

// Return angle(in radians) between x, y and coordinate system passing through central point assuming Y - axis is from bottom to top, X - axis is from left to right, and angle is measured from X axis to Y - axis(angle 0 means the point is on the X axis and x is positive; angle PI / 2 means the point is on the Y axis and y is positive; and so on)template<class TYPE>
TYPE Angle(const TYPE x, const TYPE y, const TYPE center_x, const TYPE center_y);
template<class TYPE>
TYPE Angle(const TVec2<TYPE> &a, const TVec2<TYPE> &b);
template<class TYPE>
TYPE Angle(const TVec3<TYPE> &a, const TVec3<TYPE> &b);
template<class TYPE>
TYPE Angle(const TVec4<TYPE> &a, const TVec4<TYPE> &b);
template<class TYPE>
TYPE Angle(const TQuaternion<TYPE> &a, const TQuaternion<TYPE> &b);
Namespace: ntl
Include: NTL/Core/Utils.h (For non-object arguments)
NTL/Core/Vec2.h (For TVec2 arguments)
NTL/Core/Vec3.h (For TVec3 arguments)
NTL/Core/Vec4.h (For TVec4 arguments)
NTL/Core/Quaternion.h (For TQuaternion arguments)