Box2D 2.4.1
A 2D physics engine for games
Loading...
Searching...
No Matches
b2Rot Struct Reference

Rotation. More...

#include <b2_math.h>

Public Member Functions

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

Public Attributes

float s
 Sine and cosine.
 
float c
 

Detailed Description

Rotation.

Constructor & Destructor Documentation

◆ b2Rot()

b2Rot::b2Rot ( float angle)
inlineexplicit

Initialize from an angle in radians.

TODO_ERIN optimize

Member Function Documentation

◆ Set()

void b2Rot::Set ( float angle)
inline

Set using an angle in radians.

TODO_ERIN optimize


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