Superfighters Deluxe
MathHelper Class Reference

MathHelper More...

Static Public Member Functions

static float Clamp (float value, float min, float max)
 Clamps a value between a minimum and maximum value. More...
 
static float Lerp (float value1, float value2, float amount)
 Linearly interpolates between two values. More...
 

Static Public Attributes

const float PI = (float)Math.PI
 (float)Math.PI More...
 
const float PIOver2 = (float)Math.PI * 0.5f
 (float)Math.PI * 0.5f More...
 
const float PIOver4 = (float)Math.PI * 0.25f
 (float)Math.PI * 0.25f More...
 
const float PIOver8 = (float)Math.PI * 0.125f
 (float)Math.PI * 0.125f More...
 
const float TwoPI = (float)Math.PI * 2f
 (float)Math.PI * 2f More...
 

Detailed Description

Member Function Documentation

◆ Clamp()

static float Clamp ( float  value,
float  min,
float  max 
)
static

Clamps a value between a minimum and maximum value.

Parameters
value
min
max
Returns

◆ Lerp()

static float Lerp ( float  value1,
float  value2,
float  amount 
)
static

Linearly interpolates between two values.

Parameters
value1
value2
amount
Returns

Member Data Documentation

◆ PI

const float PI = (float)Math.PI
static

(float)Math.PI

◆ PIOver2

const float PIOver2 = (float)Math.PI * 0.5f
static

(float)Math.PI * 0.5f

◆ PIOver4

const float PIOver4 = (float)Math.PI * 0.25f
static

(float)Math.PI * 0.25f

◆ PIOver8

const float PIOver8 = (float)Math.PI * 0.125f
static

(float)Math.PI * 0.125f

◆ TwoPI

const float TwoPI = (float)Math.PI * 2f
static

(float)Math.PI * 2f