GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::Transformation< N > Class Template Reference

Affine transformation in world space. More...

#include <GREM/physics/quantities.hpp>

Public Member Functions

GREM_ALWAYS_INLINE constexpr Transformation () noexcept=default
GREM_ALWAYS_INLINE constexpr Transformation (Position< N > origin, Basis< N > basis)
GREM_ALWAYS_INLINE constexpr Transformation (Zero, Basis< N > basis)
GREM_ALWAYS_INLINE constexpr Transformation (Position< N > origin, const LocalTransformation< N > &localTransformation)
GREM_ALWAYS_INLINE constexpr Transformation (Zero, const LocalTransformation< N > &localTransformation)
GREM_ALWAYS_INLINE constexpr operator mat< 3, 3, float > () const
GREM_ALWAYS_INLINE constexpr operator mat< 3, 3, double > () const
GREM_ALWAYS_INLINE constexpr operator mat< 4, 4, float > () const
GREM_ALWAYS_INLINE constexpr operator mat< 4, 4, double > () const
GREM_ALWAYS_INLINE constexpr bool operator== (const Transformation &) const noexcept=default
GREM_ALWAYS_INLINE Position< N > GREM_VECTORCALL operator() (Length< N > b) const
GREM_ALWAYS_INLINE Position< N > GREM_VECTORCALL getOrigin () const
GREM_ALWAYS_INLINE Basis< N > GREM_VECTORCALL getBasis () const
GREM_ALWAYS_INLINE Distance GREM_VECTORCALL getDistance (Length< N > localOffset) const
GREM_ALWAYS_INLINE Distance GREM_VECTORCALL getDistance2 (Length< N > localOffset) const
template<typename UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
GREM_ALWAYS_INLINE Quantity< N, UnitT > GREM_VECTORCALL getRelative (Quantity< N, UnitT > localQuantity) const
GREM_ALWAYS_INLINE Direction< N > GREM_VECTORCALL getDirection (Direction< N > direction) const

Detailed Description

template<size_t N>
class grem::physics::Transformation< N >

Affine transformation in world space.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

Constructor & Destructor Documentation

◆ Transformation() [1/5]

template<size_t N>
GREM_ALWAYS_INLINE constexpr grem::physics::Transformation< N >::Transformation ( )
constexprdefaultnoexcept

◆ Transformation() [2/5]

template<size_t N>
GREM_ALWAYS_INLINE constexpr grem::physics::Transformation< N >::Transformation ( Position< N > origin,
Basis< N > basis )
inlineconstexpr

◆ Transformation() [3/5]

template<size_t N>
GREM_ALWAYS_INLINE constexpr grem::physics::Transformation< N >::Transformation ( Zero ,
Basis< N > basis )
inlineconstexpr

◆ Transformation() [4/5]

template<size_t N>
GREM_ALWAYS_INLINE constexpr grem::physics::Transformation< N >::Transformation ( Position< N > origin,
const LocalTransformation< N > & localTransformation )
inlineexplicitconstexpr

◆ Transformation() [5/5]

template<size_t N>
GREM_ALWAYS_INLINE constexpr grem::physics::Transformation< N >::Transformation ( Zero ,
const LocalTransformation< N > & localTransformation )
inlineexplicitconstexpr

Member Function Documentation

◆ operator mat< 3, 3, float >()

template<size_t N>
GREM_ALWAYS_INLINE constexpr grem::physics::Transformation< N >::operator mat< 3, 3, float > ( ) const
inlinenodiscardconstexpr

◆ operator mat< 3, 3, double >()

template<size_t N>
GREM_ALWAYS_INLINE constexpr grem::physics::Transformation< N >::operator mat< 3, 3, double > ( ) const
inlinenodiscardconstexpr

◆ operator mat< 4, 4, float >()

template<size_t N>
GREM_ALWAYS_INLINE constexpr grem::physics::Transformation< N >::operator mat< 4, 4, float > ( ) const
inlinenodiscardconstexpr

◆ operator mat< 4, 4, double >()

template<size_t N>
GREM_ALWAYS_INLINE constexpr grem::physics::Transformation< N >::operator mat< 4, 4, double > ( ) const
inlinenodiscardconstexpr

◆ operator==()

template<size_t N>
GREM_ALWAYS_INLINE constexpr bool grem::physics::Transformation< N >::operator== ( const Transformation< N > & ) const
nodiscardconstexprdefaultnoexcept

◆ operator()()

template<size_t N>
GREM_ALWAYS_INLINE Position< N > GREM_VECTORCALL grem::physics::Transformation< N >::operator() ( Length< N > b) const
inlinenodiscard

◆ getOrigin()

template<size_t N>
GREM_ALWAYS_INLINE Position< N > GREM_VECTORCALL grem::physics::Transformation< N >::getOrigin ( ) const
inlinenodiscard

◆ getBasis()

template<size_t N>
GREM_ALWAYS_INLINE Basis< N > GREM_VECTORCALL grem::physics::Transformation< N >::getBasis ( ) const
inlinenodiscard

◆ getDistance()

template<size_t N>
GREM_ALWAYS_INLINE Distance GREM_VECTORCALL grem::physics::Transformation< N >::getDistance ( Length< N > localOffset) const
inlinenodiscard

◆ getDistance2()

template<size_t N>
GREM_ALWAYS_INLINE Distance GREM_VECTORCALL grem::physics::Transformation< N >::getDistance2 ( Length< N > localOffset) const
inlinenodiscard

◆ getRelative()

template<size_t N>
template<typename UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
GREM_ALWAYS_INLINE Quantity< N, UnitT > GREM_VECTORCALL grem::physics::Transformation< N >::getRelative ( Quantity< N, UnitT > localQuantity) const
inlinenodiscard

◆ getDirection()

template<size_t N>
GREM_ALWAYS_INLINE Direction< N > GREM_VECTORCALL grem::physics::Transformation< N >::getDirection ( Direction< N > direction) const
inlinenodiscard

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