Convert value in radians to degrees.
You can find more information in comments below.
template<class TYPE>
constexpr TYPE RadToDeg(const TYPE rad); // Convert radians to degrees
template<class TYPE>
constexpr TVec1<TYPE> RadToDeg(const TVec1<TYPE> &rad); // Convert vector elements in radians to degrees
template<class TYPE>
constexpr TVec2<TYPE> RadToDeg(const TVec2<TYPE> &rad); // Convert vector elements in radians to degrees
template<class TYPE>
constexpr TVec3<TYPE> RadToDeg(const TVec3<TYPE> &rad); // Convert vector elements in radians to degrees
template<class TYPE>
constexpr TVec4<TYPE> RadToDeg(const TVec4<TYPE> &rad); // Convert vector elements in radians to degrees
template<class TYPE>
constexpr TQuaternion<TYPE> RadToDeg(const TQuaternion<TYPE> &rad); // Convert quaternion elements in radians to degrees
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) |