Box2D  3.0.0
A Real-Time-Oriented 2-D Physics Engine
Public Member Functions | Public Attributes | List of all members
box2d::Transformation Struct Reference

Transformation. More...

#include <Math.hpp>

Public Member Functions

 Transformation ()=default
 The default constructor does nothing. More...
 
constexpr Transformation (Length2D translation, UnitVec2 rotation) noexcept
 Initialize using a translation and a rotation. More...
 
constexpr Transformation (const Transformation &copy)=default
 

Public Attributes

Length2D p
 Translational portion of the transformation. 8-bytes. More...
 
UnitVec2 q
 Rotational portion of the transformation. 8-bytes. More...
 

Detailed Description

Transformation.

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

Note
This data structure is 16-bytes large (on at least one 64-bit platform).

Constructor & Destructor Documentation

◆ Transformation() [1/3]

box2d::Transformation::Transformation ( )
default

The default constructor does nothing.

◆ Transformation() [2/3]

constexpr box2d::Transformation::Transformation ( Length2D  translation,
UnitVec2  rotation 
)
inlinenoexcept

Initialize using a translation and a rotation.

◆ Transformation() [3/3]

constexpr box2d::Transformation::Transformation ( const Transformation copy)
default

Member Data Documentation

◆ p

Length2D box2d::Transformation::p

Translational portion of the transformation. 8-bytes.

◆ q

UnitVec2 box2d::Transformation::q

Rotational portion of the transformation. 8-bytes.


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