Public Member Functions | Public Attributes
b2Transform Struct Reference

#include <b2Math.h>

List of all members.

Public Member Functions

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

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

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

Definition at line 372 of file b2Math.h.

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 Sep 7 2017 09:27:49