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. More...
 
 b2Transform (const b2Vec2 &position, const b2Rot &rotation)
 Initialize using a position vector and a rotation. More...
 
void Set (const b2Vec2 &position, float 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 338 of file b2_math.h.

Constructor & Destructor Documentation

◆ b2Transform() [1/2]

b2Transform::b2Transform ( )
inline

The default constructor does nothing.

Definition at line 341 of file b2_math.h.

◆ b2Transform() [2/2]

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

Initialize using a position vector and a rotation.

Definition at line 344 of file b2_math.h.

Member Function Documentation

◆ Set()

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

Set this based on the position and angle.

Definition at line 354 of file b2_math.h.

◆ SetIdentity()

void b2Transform::SetIdentity ( )
inline

Set this to the identity transform.

Definition at line 347 of file b2_math.h.

Member Data Documentation

◆ p

b2Vec2 b2Transform::p

Definition at line 360 of file b2_math.h.

◆ q

b2Rot b2Transform::q

Definition at line 361 of file b2_math.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22