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

Rotation. More...

#include <b2_math.h>

Public Member Functions

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

Public Attributes

float c
 
float s
 Sine and cosine. More...
 

Detailed Description

Rotation.

Definition at line 287 of file b2_math.h.

Constructor & Destructor Documentation

◆ b2Rot() [1/2]

b2Rot::b2Rot ( )
inline

Definition at line 289 of file b2_math.h.

◆ b2Rot() [2/2]

b2Rot::b2Rot ( float  angle)
inlineexplicit

Initialize from an angle in radians.

TODO_ERIN optimize

Definition at line 292 of file b2_math.h.

Member Function Documentation

◆ GetAngle()

float b2Rot::GetAngle ( ) const
inline

Get the angle in radians.

Definition at line 315 of file b2_math.h.

◆ GetXAxis()

b2Vec2 b2Rot::GetXAxis ( ) const
inline

Get the x-axis.

Definition at line 321 of file b2_math.h.

◆ GetYAxis()

b2Vec2 b2Rot::GetYAxis ( ) const
inline

Get the u-axis.

Definition at line 327 of file b2_math.h.

◆ Set()

void b2Rot::Set ( float  angle)
inline

Set using an angle in radians.

TODO_ERIN optimize

Definition at line 300 of file b2_math.h.

◆ SetIdentity()

void b2Rot::SetIdentity ( )
inline

Set to the identity rotation.

Definition at line 308 of file b2_math.h.

Member Data Documentation

◆ c

float b2Rot::c

Definition at line 333 of file b2_math.h.

◆ s

float b2Rot::s

Sine and cosine.

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