DegToRad


Convert value in degrees to radians.

You can find more information in comments below.

template<class TYPE>
constexpr TYPE DegToRad(const TYPE deg); // Convert degrees to radians
template<class TYPE>
constexpr TVec1<TYPE> DegToRad(const TVec1<TYPE> &deg); // Convert vector elements in degrees to radians
template<class TYPE>
constexpr TVec2<TYPE> DegToRad(const TVec2<TYPE> &deg); // Convert vector elements in degrees to radians
template<class TYPE>
constexpr TVec3<TYPE> DegToRad(const TVec3<TYPE> &deg); // Convert vector elements in degrees to radians
template<class TYPE>
constexpr TVec4<TYPE> DegToRad(const TVec4<TYPE> &deg); // Convert vector elements in degrees to radians
template<class TYPE>
constexpr TQuaternion<TYPE> DegToRad(const TQuaternion<TYPE> &deg); // Convert quaternion elements in degrees to radians
Namespace: ntl
Include: NTL/Core/Utils.h (For non-object argument)
NTL/Core/Vec1.h (For TVec1 argument)
NTL/Core/Vec2.h (For TVec2 argument)
NTL/Core/Vec3.h (For TVec3 argument)
NTL/Core/Vec4.h (For TVec4 argument)
NTL/Core/Quaternion.h (For TQuaternion argument)