FrameIT
MathfExtensions Class Reference

Static Public Member Functions

static bool IsApproximatelyEqual (this float floatA, float floatB, float precission=(float) Math3d.vectorPrecission)
 Checks whether two floats are approximately the same with given precission More...
 
static IEnumerator< float > LerpInTime (this float start, float end, float time)
 Lineary Lerps between start and end within time , using Time.deltaTime. Guarantees returning end at last step, More...
 
static float ToRadians (this float angleInDegree)
 Converts Degrees into Radians More...
 
static float ToDegrees (this float angleInRadians)
 Converts Radians into Degrees More...
 

Member Function Documentation

◆ IsApproximatelyEqual()

static bool MathfExtensions.IsApproximatelyEqual ( this float  floatA,
float  floatB,
float  precission = (float) Math3d.vectorPrecission 
)
static

Checks whether two floats are approximately the same with given precission

Parameters
floatAfirst float
floatBsecond float
precissionprecission to use, default: Math3d.vectorPrecission
Returns
true if two floats are approximately equal with given precission
See also
Mathf.Approximately

◆ LerpInTime()

static IEnumerator< float > MathfExtensions.LerpInTime ( this float  start,
float  end,
float  time 
)
static

Lineary Lerps between start and end within time , using Time.deltaTime. Guarantees returning end at last step,

Parameters
startValue to start
endValue to end
timeTime to pass
Returns
IEnumerator<float> with statet behaviour

◆ ToDegrees()

static float MathfExtensions.ToDegrees ( this float  angleInRadians)
static

Converts Radians into Degrees

Parameters
angleInRadiansThe Angle in Radians
Returns
The Angle in Degrees

◆ ToRadians()

static float MathfExtensions.ToRadians ( this float  angleInDegree)
static

Converts Degrees into Radians

Parameters
angleInDegreeThe Angle in Degrees
Returns
The Angle in Radians

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