Move Vectormath main
C++20 game and graphics mathematics
Loading...
Searching...
No Matches
mv::math::Rotation3< T > Class Template Reference

#include <mv/math/Rotation3.hpp>

Public Types

using Component = T
 

Public Member Functions

constexpr Rotation3 () noexcept=default
 
constexpr const Quat< T > & Quaternion () const noexcept
 
constexpr Rotation3 Inverse () const noexcept
 
Rotation3 operator* (const Rotation3 &right) const noexcept
 

Static Public Member Functions

static constexpr Rotation3 Identity () noexcept
 
static std::optional< Rotation3 > TryFrom (const Quat< T > &value) noexcept
 
static Rotation3 FromAxisAngle (const Direction3< T > &axis, Radians< T > angle) noexcept
 
static Rotation3 FromEuler (const EulerAngles3< T > &angles) noexcept
 
static std::optional< Rotation3 > TryFromOrthonormalAxes (const Direction3< T > &axisX, const Direction3< T > &axisY, const Direction3< T > &axisZ, T orthogonalityTolerance=static_cast< T >(1.0e-5)) noexcept
 
static std::optional< Rotation3 > TryLookTowards (const Direction3< T > &forward, const Direction3< T > &approximateUp) noexcept
 

Detailed Description

template<typename T>
requires std::is_floating_point_v<T>
class mv::math::Rotation3< T >

Definition at line 41 of file Rotation3.hpp.

Member Typedef Documentation

◆ Component

template<typename T >
using mv::math::Rotation3< T >::Component = T

Definition at line 44 of file Rotation3.hpp.

Constructor & Destructor Documentation

◆ Rotation3()

template<typename T >
constexpr mv::math::Rotation3< T >::Rotation3 ( )
constexprdefaultnoexcept

Member Function Documentation

◆ FromAxisAngle()

template<typename T >
static Rotation3 mv::math::Rotation3< T >::FromAxisAngle ( const Direction3< T > &  axis,
Radians< T >  angle 
)
inlinestaticnoexcept

Definition at line 64 of file Rotation3.hpp.

◆ FromEuler()

template<typename T >
static Rotation3 mv::math::Rotation3< T >::FromEuler ( const EulerAngles3< T > &  angles)
inlinestaticnoexcept

Definition at line 80 of file Rotation3.hpp.

◆ Identity()

template<typename T >
static constexpr Rotation3 mv::math::Rotation3< T >::Identity ( )
inlinestaticconstexprnoexcept

Definition at line 48 of file Rotation3.hpp.

◆ Inverse()

template<typename T >
constexpr Rotation3 mv::math::Rotation3< T >::Inverse ( ) const
inlineconstexprnoexcept

Definition at line 191 of file Rotation3.hpp.

◆ operator*()

template<typename T >
Rotation3 mv::math::Rotation3< T >::operator* ( const Rotation3< T > &  right) const
inlinenoexcept

Definition at line 198 of file Rotation3.hpp.

◆ Quaternion()

template<typename T >
constexpr const Quat< T > & mv::math::Rotation3< T >::Quaternion ( ) const
inlineconstexprnoexcept

Definition at line 186 of file Rotation3.hpp.

◆ TryFrom()

template<typename T >
static std::optional< Rotation3 > mv::math::Rotation3< T >::TryFrom ( const Quat< T > &  value)
inlinestaticnoexcept

Definition at line 53 of file Rotation3.hpp.

◆ TryFromOrthonormalAxes()

template<typename T >
static std::optional< Rotation3 > mv::math::Rotation3< T >::TryFromOrthonormalAxes ( const Direction3< T > &  axisX,
const Direction3< T > &  axisY,
const Direction3< T > &  axisZ,
T  orthogonalityTolerance = static_cast<T>(1.0e-5) 
)
inlinestaticnoexcept

Definition at line 110 of file Rotation3.hpp.

◆ TryLookTowards()

template<typename T >
static std::optional< Rotation3 > mv::math::Rotation3< T >::TryLookTowards ( const Direction3< T > &  forward,
const Direction3< T > &  approximateUp 
)
inlinestaticnoexcept

Definition at line 168 of file Rotation3.hpp.


The documentation for this class was generated from the following file: