GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::Orientation< 3 > Struct Reference

Absolute orientation in 3-dimensional space. More...

#include <GREM/physics/quantities.hpp>

Inheritance diagram for grem::physics::Orientation< 3 >:

Public Types

using Component = AbsoluteAngle
using Unit = Absolute<Radians>
using DimensionType = typename Unit::DimensionType
using MagnitudeType = typename Unit::MagnitudeType

Public Member Functions

GREM_ALWAYS_INLINE constexpr Orientation () noexcept=default
GREM_ALWAYS_INLINE constexpr Orientation (qua< float > quaternion) noexcept
GREM_ALWAYS_INLINE constexpr Orientation (qua< double > quaternion) noexcept
GREM_ALWAYS_INLINE constexpr operator qua< float > () const
GREM_ALWAYS_INLINE constexpr operator qua< double > () const
GREM_ALWAYS_INLINE constexpr bool operator== (const Orientation &) const noexcept=default
template<typename UnitT>
GREM_ALWAYS_INLINE Quantity< 3, UnitT > GREM_VECTORCALL operator() (Quantity< 3, UnitT > b) const
GREM_ALWAYS_INLINE Direction3D GREM_VECTORCALL operator() (Direction3D b) const
GREM_ALWAYS_INLINE constexpr size_t size () const noexcept

Static Public Member Functions

static GREM_ALWAYS_INLINE Orientation rotation (Scale3D from, Scale3D to)
static GREM_ALWAYS_INLINE Orientation lookAt (Scale3D direction, Scale3D up)
static GREM_ALWAYS_INLINE Orientation angleAxis (AbsoluteAngle angle, Scale3D axis)
static GREM_ALWAYS_INLINE Orientation pitch (AbsoluteAngle angle)
static GREM_ALWAYS_INLINE Orientation yaw (AbsoluteAngle angle)
static GREM_ALWAYS_INLINE Orientation roll (AbsoluteAngle angle)
static GREM_ALWAYS_INLINE Orientation fromAngles (AbsoluteAngle pitchAngle, AbsoluteAngle yawAngle, AbsoluteAngle rollAngle)
static GREM_ALWAYS_INLINE Orientation fromAngles (PitchYawRoll angles)
static GREM_ALWAYS_INLINE Orientation fromBasis (const Basis3D &basis)

Static Public Attributes

static constexpr size_t RANK = 4
static constexpr Unit UNIT {}
static constexpr DimensionType DIMENSION {}
static constexpr MagnitudeType MAGNITUDE {}

Detailed Description

Absolute orientation in 3-dimensional space.

Unit: Radians.

Member Typedef Documentation

◆ Component

using grem::physics::Orientation< 3 >::Component = AbsoluteAngle

◆ Unit

using grem::physics::Orientation< 3 >::Unit = Absolute<Radians>

◆ DimensionType

using grem::physics::Orientation< 3 >::DimensionType = typename Unit::DimensionType

◆ MagnitudeType

using grem::physics::Orientation< 3 >::MagnitudeType = typename Unit::MagnitudeType

Constructor & Destructor Documentation

◆ Orientation() [1/3]

GREM_ALWAYS_INLINE constexpr grem::physics::Orientation< 3 >::Orientation ( )
constexprdefaultnoexcept

◆ Orientation() [2/3]

GREM_ALWAYS_INLINE constexpr grem::physics::Orientation< 3 >::Orientation ( qua< float > quaternion)
inlineconstexprnoexcept

◆ Orientation() [3/3]

GREM_ALWAYS_INLINE constexpr grem::physics::Orientation< 3 >::Orientation ( qua< double > quaternion)
inlineconstexprnoexcept

Member Function Documentation

◆ rotation()

GREM_ALWAYS_INLINE Orientation grem::physics::Orientation< 3 >::rotation ( Scale3D from,
Scale3D to )
inlinestaticnodiscard

◆ lookAt()

GREM_ALWAYS_INLINE Orientation grem::physics::Orientation< 3 >::lookAt ( Scale3D direction,
Scale3D up )
inlinestaticnodiscard

◆ angleAxis()

GREM_ALWAYS_INLINE Orientation grem::physics::Orientation< 3 >::angleAxis ( AbsoluteAngle angle,
Scale3D axis )
inlinestaticnodiscard

◆ pitch()

GREM_ALWAYS_INLINE Orientation grem::physics::Orientation< 3 >::pitch ( AbsoluteAngle angle)
inlinestaticnodiscard

◆ yaw()

GREM_ALWAYS_INLINE Orientation grem::physics::Orientation< 3 >::yaw ( AbsoluteAngle angle)
inlinestaticnodiscard

◆ roll()

GREM_ALWAYS_INLINE Orientation grem::physics::Orientation< 3 >::roll ( AbsoluteAngle angle)
inlinestaticnodiscard

◆ fromAngles() [1/2]

GREM_ALWAYS_INLINE Orientation grem::physics::Orientation< 3 >::fromAngles ( AbsoluteAngle pitchAngle,
AbsoluteAngle yawAngle,
AbsoluteAngle rollAngle )
inlinestaticnodiscard

◆ fromAngles() [2/2]

GREM_ALWAYS_INLINE Orientation grem::physics::Orientation< 3 >::fromAngles ( PitchYawRoll angles)
inlinestaticnodiscard

◆ fromBasis()

GREM_ALWAYS_INLINE Orientation grem::physics::Orientation< 3 >::fromBasis ( const Basis3D & basis)
inlinestaticnodiscard

◆ operator qua< float >()

GREM_ALWAYS_INLINE constexpr grem::physics::Orientation< 3 >::operator qua< float > ( ) const
inlinenodiscardconstexpr

◆ operator qua< double >()

GREM_ALWAYS_INLINE constexpr grem::physics::Orientation< 3 >::operator qua< double > ( ) const
inlinenodiscardconstexpr

◆ operator==()

GREM_ALWAYS_INLINE constexpr bool grem::physics::Orientation< 3 >::operator== ( const Orientation< 3 > & ) const
nodiscardconstexprdefaultnoexcept

◆ operator()() [1/2]

template<typename UnitT>
GREM_ALWAYS_INLINE Quantity< 3, UnitT > GREM_VECTORCALL grem::physics::Orientation< 3 >::operator() ( Quantity< 3, UnitT > b) const
inlinenodiscard

◆ operator()() [2/2]

◆ size()

GREM_ALWAYS_INLINE constexpr size_t grem::physics::Orientation< 3 >::size ( ) const
inlinenodiscardconstexprnoexcept

Member Data Documentation

◆ RANK

size_t grem::physics::Orientation< 3 >::RANK = 4
staticconstexpr

◆ UNIT

Unit grem::physics::Orientation< 3 >::UNIT {}
staticconstexpr

◆ DIMENSION

DimensionType grem::physics::Orientation< 3 >::DIMENSION {}
staticconstexpr

◆ MAGNITUDE

MagnitudeType grem::physics::Orientation< 3 >::MAGNITUDE {}
staticconstexpr

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