PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::d2::Transformation Struct Reference

Describes a geometric transformation. More...

#include <Transformation.hpp>

Collaboration diagram for playrho::d2::Transformation:
[legend]

Public Attributes

Length2 p = Length2{}
 Translational portion of the transformation.
 
UnitVec q = UnitVec::GetRight()
 Rotational/directional portion of the transformation.
 

Related Functions

(Note that these are not member functions.)

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

Detailed Description

Describes a geometric transformation.

A transformation contains translation and rotation. It's used to represent the location and direction of things like bodies.

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, Shape.cpp, and WorldBody.cpp.

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