Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::Angle Namespace Reference

Typedefs

template<typename T >
using RADIANS = T
 
template<typename T >
using DEGREES = T
 

Functions

template<typename T >
constexpr DEGREES< T > to_VerticalFoV (DEGREES< T > horizontalFoV, D64 aspectRatio) noexcept
 
template<typename T >
constexpr DEGREES< T > to_HorizontalFoV (DEGREES< T > verticalFoV, D64 aspectRatio) noexcept
 
template<typename T >
constexpr RADIANS< T > to_RADIANS (DEGREES< T > angle) noexcept
 
template<typename T >
constexpr DEGREES< T > to_DEGREES (RADIANS< T > angle) noexcept
 
template<typename T >
constexpr vec2< RADIANS< T > > to_RADIANS (vec2< DEGREES< T > > angle) noexcept
 
template<typename T >
constexpr vec2< DEGREES< T > > to_DEGREES (vec2< RADIANS< T > > angle) noexcept
 
template<typename T >
constexpr vec3< RADIANS< T > > to_RADIANS (const vec3< DEGREES< T > > &angle) noexcept
 
template<typename T >
constexpr vec3< DEGREES< T > > to_DEGREES (const vec3< RADIANS< T > > &angle) noexcept
 
template<typename T >
constexpr vec4< RADIANS< T > > to_RADIANS (const vec4< DEGREES< T > > &angle) noexcept
 
template<typename T >
constexpr vec4< DEGREES< T > > to_DEGREES (const vec4< RADIANS< T > > &angle) noexcept
 
template<typename T >
constexpr T DegreesToRadians (T angleDegrees) noexcept
 Return the radian equivalent of the given degree value.
 
template<typename T >
constexpr T RadiansToDegrees (T angleRadians) noexcept
 Return the degree equivalent of the given radian value.
 
template<typename T >
constexpr T Degrees (T degrees) noexcept
 Returns the specified value. Used only for emphasis.
 
template<typename T >
constexpr T Radians (T radians) noexcept
 Returns the specified value. Used only for emphasis.
 
template<>
constexpr RADIANS< F32to_RADIANS (const DEGREES< F32 > angle) noexcept
 
template<>
constexpr DEGREES< F32to_DEGREES (const RADIANS< F32 > angle) noexcept
 

Typedef Documentation

◆ DEGREES

template<typename T >
using Divide::Angle::DEGREES = typedef T

Definition at line 275 of file MathHelper.h.

◆ RADIANS

template<typename T >
using Divide::Angle::RADIANS = typedef T

Definition at line 272 of file MathHelper.h.

Function Documentation

◆ Degrees()

template<typename T >
constexpr T Divide::Angle::Degrees ( degrees)
constexprnoexcept

Returns the specified value. Used only for emphasis.

Definition at line 442 of file MathHelper.inl.

◆ DegreesToRadians()

template<typename T >
constexpr T Divide::Angle::DegreesToRadians ( angleDegrees)
constexprnoexcept

Return the radian equivalent of the given degree value.

Definition at line 429 of file MathHelper.inl.

◆ Radians()

template<typename T >
constexpr T Divide::Angle::Radians ( radians)
constexprnoexcept

Returns the specified value. Used only for emphasis.

Definition at line 449 of file MathHelper.inl.

◆ RadiansToDegrees()

template<typename T >
constexpr T Divide::Angle::RadiansToDegrees ( angleRadians)
constexprnoexcept

Return the degree equivalent of the given radian value.

Definition at line 436 of file MathHelper.inl.

◆ to_DEGREES() [1/5]

template<>
constexpr DEGREES< F32 > Divide::Angle::to_DEGREES ( const RADIANS< F32 angle)
constexprnoexcept

Definition at line 386 of file MathHelper.inl.

◆ to_DEGREES() [2/5]

template<typename T >
constexpr vec3< DEGREES< T > > Divide::Angle::to_DEGREES ( const vec3< RADIANS< T > > &  angle)
constexprnoexcept

Definition at line 410 of file MathHelper.inl.

◆ to_DEGREES() [3/5]

template<typename T >
constexpr vec4< DEGREES< T > > Divide::Angle::to_DEGREES ( const vec4< RADIANS< T > > &  angle)
constexprnoexcept

Definition at line 422 of file MathHelper.inl.

◆ to_DEGREES() [4/5]

template<typename T >
constexpr DEGREES< T > Divide::Angle::to_DEGREES ( RADIANS< T >  angle)
constexprnoexcept

Definition at line 380 of file MathHelper.inl.

◆ to_DEGREES() [5/5]

template<typename T >
constexpr vec2< DEGREES< T > > Divide::Angle::to_DEGREES ( vec2< RADIANS< T > >  angle)
constexprnoexcept

Definition at line 398 of file MathHelper.inl.

◆ to_HorizontalFoV()

template<typename T >
constexpr DEGREES< T > Divide::Angle::to_HorizontalFoV ( DEGREES< T >  verticalFoV,
D64  aspectRatio 
)
constexprnoexcept

Definition at line 360 of file MathHelper.inl.

◆ to_RADIANS() [1/5]

template<>
constexpr RADIANS< F32 > Divide::Angle::to_RADIANS ( const DEGREES< F32 angle)
constexprnoexcept

Definition at line 374 of file MathHelper.inl.

◆ to_RADIANS() [2/5]

template<typename T >
constexpr vec3< RADIANS< T > > Divide::Angle::to_RADIANS ( const vec3< DEGREES< T > > &  angle)
constexprnoexcept

Definition at line 404 of file MathHelper.inl.

◆ to_RADIANS() [3/5]

template<typename T >
constexpr vec4< RADIANS< T > > Divide::Angle::to_RADIANS ( const vec4< DEGREES< T > > &  angle)
constexprnoexcept

Definition at line 416 of file MathHelper.inl.

◆ to_RADIANS() [4/5]

template<typename T >
constexpr RADIANS< T > Divide::Angle::to_RADIANS ( DEGREES< T >  angle)
constexprnoexcept

Definition at line 368 of file MathHelper.inl.

◆ to_RADIANS() [5/5]

template<typename T >
constexpr vec2< RADIANS< T > > Divide::Angle::to_RADIANS ( vec2< DEGREES< T > >  angle)
constexprnoexcept

Definition at line 392 of file MathHelper.inl.

◆ to_VerticalFoV()

template<typename T >
constexpr DEGREES< T > Divide::Angle::to_VerticalFoV ( DEGREES< T >  horizontalFoV,
D64  aspectRatio 
)
constexprnoexcept

Definition at line 352 of file MathHelper.inl.