Box2D: b2Transform Struct Reference

| Box2D 2.4.0 A 2D physics engine for games

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

`#include <b2_math.h>`

## 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 | SetIdentity ()
| Set this to the identity transform.
void | Set (const b2Vec2 &position, float angle)
| Set this based on the position and angle.

## 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.

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

- /build/box2d/src/box2d-adaedf1772ede7420bc9ee569c8cba7952db91a0/include/box2d/b2_math.h