PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::Transformation Struct Reference

Describes a geometric transformation. More...

#include <playrho/d2/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 auto IsValid (const d2::Transformation &value) noexcept -> bool
 Determines if the given value is valid.
 
constexpr bool operator!= (const Transformation &lhs, const Transformation &rhs) noexcept
 Inequality operator.
 
constexpr bool operator== (const Transformation &lhs, const Transformation &rhs) noexcept
 Equality operator.
 

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.

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