Nano Brain for Unity v0.1
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
LinearAlgebra.Angles Class Reference

Description

Angle utilities

Static Public Member Functions

static float Difference (float a, float b)
 Determine the angle difference, result is a normalized angle.
 
static float Normalize (float angle)
 Normalize an angle to the range -180 < angle <= 180.
 

Static Public Attributes

const float pi = 3.1415927410125732421875F
 

Member Function Documentation

◆ Difference()

static float LinearAlgebra.Angles.Difference ( float  a,
float  b 
)
static

Determine the angle difference, result is a normalized angle.

Parameters
aFirst first angle
bThe second angle
Returns
the angle between the two angles

Angle values should be degrees

◆ Normalize()

static float LinearAlgebra.Angles.Normalize ( float  angle)
static

Normalize an angle to the range -180 < angle <= 180.

Parameters
angleThe angle to normalize
Returns
The normalized angle in interval (-180..180]

Angle values should be in degrees


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