Public Member Functions | Public Attributes | List of all members
b2Transform Struct Reference

#include <b2Math.h>

Public Member Functions

 b2Transform ()
 The default constructor does nothing. More...
 
 b2Transform (const b2Vec2 &position, const b2Rot &rotation)
 Initialize using a position vector and a rotation. More...
 
void Set (const b2Vec2 &position, float32 angle)
 Set this based on the position and angle. More...
 
void SetIdentity ()
 Set this to the identity transform. More...
 

Public Attributes

b2Vec2 p
 
b2Rot q
 

Detailed Description

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

Definition at line 350 of file b2Math.h.

Constructor & Destructor Documentation

b2Transform::b2Transform ( )
inline

The default constructor does nothing.

Definition at line 353 of file b2Math.h.

b2Transform::b2Transform ( const b2Vec2 position,
const b2Rot rotation 
)
inline

Initialize using a position vector and a rotation.

Definition at line 356 of file b2Math.h.

Member Function Documentation

void b2Transform::Set ( const b2Vec2 position,
float32  angle 
)
inline

Set this based on the position and angle.

Definition at line 366 of file b2Math.h.

void b2Transform::SetIdentity ( )
inline

Set this to the identity transform.

Definition at line 359 of file b2Math.h.

Member Data Documentation

b2Vec2 b2Transform::p

Definition at line 372 of file b2Math.h.

b2Rot b2Transform::q

Definition at line 373 of file b2Math.h.


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


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:41