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 349 of file b2Math.h.

Constructor & Destructor Documentation

b2Transform::b2Transform ( )
inline

The default constructor does nothing.

Definition at line 352 of file b2Math.h.

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

Initialize using a position vector and a rotation.

Definition at line 355 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 365 of file b2Math.h.

void b2Transform::SetIdentity ( )
inline

Set this to the identity transform.

Definition at line 358 of file b2Math.h.

Member Data Documentation

b2Vec2 b2Transform::p

Definition at line 371 of file b2Math.h.

b2Rot b2Transform::q

Definition at line 372 of file b2Math.h.


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


mvsim
Author(s):
autogenerated on Fri May 7 2021 03:05:52