Torque2D Reference
Public Member Functions | Public Attributes | List of all members
b2Rot Struct Reference

Rotation. More...

#include <b2Math.h>

Public Member Functions

 b2Rot ()
 
 b2Rot (float32 angle)
 Initialize from an angle in radians. More...
 
void Set (float32 angle)
 Set using an angle in radians. More...
 
void SetIdentity ()
 Set to the identity rotation. More...
 
float32 GetAngle () const
 Get the angle in radians. More...
 
b2Vec2 GetXAxis () const
 Get the x-axis. More...
 
b2Vec2 GetYAxis () const
 Get the u-axis. More...
 

Public Attributes

float32 s
 Sine and cosine. More...
 
float32 c
 

Detailed Description

Rotation.

Constructor & Destructor Documentation

b2Rot ( )
inline
b2Rot ( float32  angle)
inlineexplicit

Initialize from an angle in radians.

TODO_ERIN optimize

Member Function Documentation

float32 GetAngle ( ) const
inline

Get the angle in radians.

b2Vec2 GetXAxis ( ) const
inline

Get the x-axis.

b2Vec2 GetYAxis ( ) const
inline

Get the u-axis.

void Set ( float32  angle)
inline

Set using an angle in radians.

TODO_ERIN optimize

void SetIdentity ( )
inline

Set to the identity rotation.

Member Data Documentation

float32 c
float32 s

Sine and cosine.


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