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...
 
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...
 
void Set (float32 angle)
 Set using an angle in radians. More...
 
void SetIdentity ()
 Set to the identity rotation. More...
 

Public Attributes

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

Detailed Description

Rotation.

Definition at line 298 of file b2Math.h.

Constructor & Destructor Documentation

b2Rot::b2Rot ( )
inline

Definition at line 300 of file b2Math.h.

b2Rot::b2Rot ( float32  angle)
inlineexplicit

Initialize from an angle in radians.

TODO_ERIN optimize

Definition at line 303 of file b2Math.h.

Member Function Documentation

float32 b2Rot::GetAngle ( ) const
inline

Get the angle in radians.

Definition at line 326 of file b2Math.h.

b2Vec2 b2Rot::GetXAxis ( ) const
inline

Get the x-axis.

Definition at line 332 of file b2Math.h.

b2Vec2 b2Rot::GetYAxis ( ) const
inline

Get the u-axis.

Definition at line 338 of file b2Math.h.

void b2Rot::Set ( float32  angle)
inline

Set using an angle in radians.

TODO_ERIN optimize

Definition at line 311 of file b2Math.h.

void b2Rot::SetIdentity ( )
inline

Set to the identity rotation.

Definition at line 319 of file b2Math.h.

Member Data Documentation

float32 b2Rot::c

Definition at line 344 of file b2Math.h.

float32 b2Rot::s

Sine and cosine.

Definition at line 344 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