playrho::d2::Transformation Struct Reference

Describes a geometric transformation. More...

#include <Transformation.hpp>

Public Attributes

Length2 p = Length2{}
 Translational portion of the transformation. 8-bytes. More...
 
UnitVec q = UnitVec::GetRight()
 Rotational portion of the transformation. 8-bytes. More...
 

Related Functions

(Note that these are not member functions.)

template<>
PLAYRHO_CONSTEXPR bool IsValid (const d2::Sweep &value) noexcept
 Determines if the given value is valid. More...
 
PLAYRHO_CONSTEXPR bool operator== (Transformation lhs, Transformation rhs) noexcept
 Equality operator. More...
 
PLAYRHO_CONSTEXPR bool operator!= (Transformation lhs, Transformation rhs) noexcept
 Inequality operator. More...
 
template<>
PLAYRHO_CONSTEXPR bool IsValid (const d2::Transformation &value) noexcept
 Determines if the given value is valid. More...
 

Detailed Description

Describes a geometric transformation.

A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.

Note
The default transformation is the identity transformation - the transformation which neither translates nor rotates a location.
This data structure is 16-bytes large (on at least one 64-bit platform).
Examples
Body.cpp.

Definition at line 41 of file Transformation.hpp.

Friends And Related Function Documentation

◆ IsValid() [1/2]

PLAYRHO_CONSTEXPR bool IsValid ( const d2::Sweep value)
related

Determines if the given value is valid.

Definition at line 135 of file Sweep.hpp.

◆ operator==()

PLAYRHO_CONSTEXPR bool operator== ( Transformation  lhs,
Transformation  rhs 
)
related

Equality operator.

Definition at line 54 of file Transformation.hpp.

◆ operator!=()

PLAYRHO_CONSTEXPR bool operator!= ( Transformation  lhs,
Transformation  rhs 
)
related

Inequality operator.

Definition at line 61 of file Transformation.hpp.

◆ IsValid() [2/2]

PLAYRHO_CONSTEXPR bool IsValid ( const d2::Transformation value)
related

Determines if the given value is valid.

Definition at line 71 of file Transformation.hpp.

Member Data Documentation

◆ p

Length2 playrho::d2::Transformation::p = Length2{}

Translational portion of the transformation. 8-bytes.

Definition at line 43 of file Transformation.hpp.

◆ q

UnitVec playrho::d2::Transformation::q = UnitVec::GetRight()

Rotational portion of the transformation. 8-bytes.

Definition at line 44 of file Transformation.hpp.


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