Slippers Engine
 
Loading...
Searching...
No Matches
Rotations

Rotations

static void MathTools::ChangeRotRad (Matrix &world, float x, float y, float z)
 Gets the angle of an object towards a point in radians.
 
static void MathTools::ChangeRotRadRev (Matrix &world, float x, float y, float z)
 Changes rotation in radians of object relative to current object: World * Rot.
 
static void MathTools::ChangeRotDeg (Matrix &world, float x, float y, float z)
 Changes rotation in degrees of object relative to current object: Rot * World.
 
static void MathTools::ChangeRotDegRev (Matrix &world, float x, float y, float z)
 Changes rotation in degrees of object relative to current object: World * Rot.
 
static void MathTools::SetRotRad (Matrix &world, float x, float y, float z)
 Sets rotation to an exact angle in radians based on XYZ.
 
static void MathTools::SetRotDeg (Matrix &world, float x, float y, float z)
 Sets rotation to an exact angle in degrees based on XYZ.
 
static float MathTools::GetRotXRad (const Matrix &world)
 Returns rotation of X in radians.
 
static float MathTools::GetRotYRad (const Matrix &world)
 Returns rotation of Y in radians.
 
static float MathTools::GetRotZRad (const Matrix &world)
 Returns rotation of Z in radians.
 
static float MathTools::GetRotXDeg (const Matrix &world)
 Returns rotation of X in degrees.
 
static float MathTools::GetRotYDeg (const Matrix &world)
 Returns rotation of Y in degrees.
 
static float MathTools::GetRotZDeg (const Matrix &world)
 Returns rotation of Z in degrees.
 

Detailed Description

Function Documentation

◆ ChangeRotDeg()

void MathTools::ChangeRotDeg ( Matrix & world,
float x,
float y,
float z )
static

Changes rotation in degrees of object relative to current object: Rot * World.

Parameters
world
x
y
z

◆ ChangeRotDegRev()

void MathTools::ChangeRotDegRev ( Matrix & world,
float x,
float y,
float z )
static

Changes rotation in degrees of object relative to current object: World * Rot.

Parameters
world
x
y
z

◆ ChangeRotRad()

void MathTools::ChangeRotRad ( Matrix & world,
float x,
float y,
float z )
static

Gets the angle of an object towards a point in radians.

Parameters
worldOne
target
Returns
Vect

Gets the angle of an object towards a point in degrees

Parameters
worldOne
target
Returns
Vect

Changes rotation in radians of object relative to current object: Rot * World

Parameters
world
x
y
z

◆ ChangeRotRadRev()

void MathTools::ChangeRotRadRev ( Matrix & world,
float x,
float y,
float z )
static

Changes rotation in radians of object relative to current object: World * Rot.

Parameters
world
x
y
z

◆ GetRotXDeg()

float MathTools::GetRotXDeg ( const Matrix & world)
static

Returns rotation of X in degrees.

Parameters
world
Returns
float

◆ GetRotXRad()

float MathTools::GetRotXRad ( const Matrix & world)
static

Returns rotation of X in radians.

Parameters
world
Returns
float

◆ GetRotYDeg()

float MathTools::GetRotYDeg ( const Matrix & world)
static

Returns rotation of Y in degrees.

Parameters
world
Returns
float

◆ GetRotYRad()

float MathTools::GetRotYRad ( const Matrix & world)
static

Returns rotation of Y in radians.

Parameters
world
Returns
float

◆ GetRotZDeg()

float MathTools::GetRotZDeg ( const Matrix & world)
static

Returns rotation of Z in degrees.

Parameters
world
Returns
float

◆ GetRotZRad()

float MathTools::GetRotZRad ( const Matrix & world)
static

Returns rotation of Z in radians.

Parameters
world
Returns
float

◆ SetRotDeg()

void MathTools::SetRotDeg ( Matrix & world,
float x,
float y,
float z )
static

Sets rotation to an exact angle in degrees based on XYZ.

Parameters
world
x
y
z

◆ SetRotRad()

void MathTools::SetRotRad ( Matrix & world,
float x,
float y,
float z )
static

Sets rotation to an exact angle in radians based on XYZ.

Parameters
world
x
y
z