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

Inverse of an affine transformation in world space. More...

#include <GREM/physics/quantities.hpp>

Public Member Functions

GREM_ALWAYS_INLINE constexpr InverseTransformation () noexcept=default
GREM_ALWAYS_INLINE constexpr bool operator== (const InverseTransformation &) const noexcept=default
GREM_ALWAYS_INLINE Length< N > GREM_VECTORCALL operator() (Position< N > b) const
GREM_ALWAYS_INLINE Position< N > GREM_VECTORCALL getOriginalOrigin () 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
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL operator* (Transformation< N > b) const

Friends

template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverseTranslateRotateScale (Position< OtherN > position, Orientation< OtherN > orientation, Scale< OtherN > scale)
GREM_ALWAYS_INLINE friend InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotateScale (Position3D position, qua< float > orientation, Scale3D scale)
GREM_ALWAYS_INLINE friend InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotateScale (Position3D position, qua< double > orientation, Scale3D scale)
template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverseTranslateRotate (Position< OtherN > position, Orientation< OtherN > orientation)
GREM_ALWAYS_INLINE friend InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotate (Position3D position, qua< float > orientation)
GREM_ALWAYS_INLINE friend InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotate (Position3D position, qua< double > orientation)
template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverseTranslateScale (Position< OtherN > position, Scale< OtherN > scale)
template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverseTranslate (Position< OtherN > position)
template<size_t OtherN>
GREM_ALWAYS_INLINE friend Transformation< OtherN > GREM_VECTORCALL inverse (InverseTransformation< OtherN > a)
template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverse (Transformation< OtherN > a)
template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverse (Transformation< OtherN > a)

Detailed Description

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

Inverse of an affine transformation in world space.

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

Constructor & Destructor Documentation

◆ InverseTransformation()

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

Member Function Documentation

◆ operator==()

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

◆ operator()()

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

◆ getOriginalOrigin()

template<size_t N>
GREM_ALWAYS_INLINE Position< N > GREM_VECTORCALL grem::physics::InverseTransformation< N >::getOriginalOrigin ( ) const
inlinenodiscard

◆ getBasis()

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

◆ getDistance()

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

◆ getDistance2()

template<size_t N>
GREM_ALWAYS_INLINE Distance GREM_VECTORCALL grem::physics::InverseTransformation< 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::InverseTransformation< N >::getRelative ( Quantity< N, UnitT > localQuantity) const
inlinenodiscard

◆ getDirection()

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

◆ operator*()

template<size_t N>
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL grem::physics::InverseTransformation< N >::operator* ( Transformation< N > b) const
inlinenodiscard

◆ inverseTranslateRotateScale [1/3]

template<size_t N>
template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverseTranslateRotateScale ( Position< OtherN > position,
Orientation< OtherN > orientation,
Scale< OtherN > scale )
friend

◆ inverseTranslateRotateScale [2/3]

template<size_t N>
GREM_ALWAYS_INLINE friend InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotateScale ( Position3D position,
qua< float > orientation,
Scale3D scale )
friend

◆ inverseTranslateRotateScale [3/3]

template<size_t N>
GREM_ALWAYS_INLINE friend InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotateScale ( Position3D position,
qua< double > orientation,
Scale3D scale )
friend

◆ inverseTranslateRotate [1/3]

template<size_t N>
template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverseTranslateRotate ( Position< OtherN > position,
Orientation< OtherN > orientation )
friend

◆ inverseTranslateRotate [2/3]

template<size_t N>
GREM_ALWAYS_INLINE friend InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotate ( Position3D position,
qua< float > orientation )
friend

◆ inverseTranslateRotate [3/3]

template<size_t N>
GREM_ALWAYS_INLINE friend InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotate ( Position3D position,
qua< double > orientation )
friend

◆ inverseTranslateScale

template<size_t N>
template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverseTranslateScale ( Position< OtherN > position,
Scale< OtherN > scale )
friend

◆ inverseTranslate

template<size_t N>
template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverseTranslate ( Position< OtherN > position)
friend

◆ inverse [1/3]

template<size_t N>
template<size_t OtherN>
GREM_ALWAYS_INLINE friend Transformation< OtherN > GREM_VECTORCALL inverse ( InverseTransformation< OtherN > a)
friend

◆ inverse [2/3]

template<size_t N>
template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverse ( Transformation< OtherN > a)
friend

◆ inverse [3/3]

template<size_t N>
template<size_t OtherN>
GREM_ALWAYS_INLINE friend InverseTransformation< OtherN > GREM_VECTORCALL inverse ( Transformation< OtherN > a)
friend

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