C# Class Cascade.MyMath

Mostra file Open project: RIT-Tool-Time/Cascade

Public Methods

Method Description
AngleDistance ( Vector2 vec1, Vector2 vec2, float target ) : float
Between ( Color col1, Color col2, float val ) : Color
Between ( Vector2 num1, Vector2 num2, float val ) : Vector2
Between ( float num1, float num2, float val ) : float
BetweenValue ( float val1, float val2, float between ) : float
Direction ( Vector3 vec1, Vector3 vec2 ) : Vector2
Direction ( Vector2 vec1, Vector2 vec2 ) : float
Direction ( float x1, float y1, float x2, float y2 ) : float
Distance ( Vector3 pos ) : float
Distance ( Vector3 pos1, Vector3 pos2 ) : float
LengthDir ( float Length, float Direction ) : Vector2
LengthDirX ( float Length, float Direction ) : float
LengthDirY ( float Length, float Direction ) : float
Random ( ) : float
RandomRange ( Vector3 vec1, Vector3 vec2 ) : Vector3
RandomRange ( float num1, float num2 ) : float
RandomVectorRange ( this baseVector, Vector2 rangeVector ) : Vector2
RandomVectorRange ( this baseVector, Vector3 rangeVector ) : Vector3
RandomVectorRange ( this baseVector, Vector4 rangeVector ) : Vector4

Method Details

AngleDistance() public static method

public static AngleDistance ( Vector2 vec1, Vector2 vec2, float target ) : float
vec1 Vector2
vec2 Vector2
target float
return float

Between() public static method

public static Between ( Color col1, Color col2, float val ) : Color
col1 Color
col2 Color
val float
return Color

Between() public static method

public static Between ( Vector2 num1, Vector2 num2, float val ) : Vector2
num1 Vector2
num2 Vector2
val float
return Vector2

Between() public static method

public static Between ( float num1, float num2, float val ) : float
num1 float
num2 float
val float
return float

BetweenValue() public static method

public static BetweenValue ( float val1, float val2, float between ) : float
val1 float
val2 float
between float
return float

Direction() public static method

public static Direction ( Vector3 vec1, Vector3 vec2 ) : Vector2
vec1 Vector3
vec2 Vector3
return Vector2

Direction() public static method

public static Direction ( Vector2 vec1, Vector2 vec2 ) : float
vec1 Vector2
vec2 Vector2
return float

Direction() public static method

public static Direction ( float x1, float y1, float x2, float y2 ) : float
x1 float
y1 float
x2 float
y2 float
return float

Distance() public static method

public static Distance ( Vector3 pos ) : float
pos Vector3
return float

Distance() public static method

public static Distance ( Vector3 pos1, Vector3 pos2 ) : float
pos1 Vector3
pos2 Vector3
return float

LengthDir() public static method

public static LengthDir ( float Length, float Direction ) : Vector2
Length float
Direction float
return Vector2

LengthDirX() public static method

public static LengthDirX ( float Length, float Direction ) : float
Length float
Direction float
return float

LengthDirY() public static method

public static LengthDirY ( float Length, float Direction ) : float
Length float
Direction float
return float

Random() public static method

public static Random ( ) : float
return float

RandomRange() public static method

public static RandomRange ( Vector3 vec1, Vector3 vec2 ) : Vector3
vec1 Vector3
vec2 Vector3
return Vector3

RandomRange() public static method

public static RandomRange ( float num1, float num2 ) : float
num1 float
num2 float
return float

RandomVectorRange() public static method

public static RandomVectorRange ( this baseVector, Vector2 rangeVector ) : Vector2
baseVector this
rangeVector Vector2
return Vector2

RandomVectorRange() public static method

public static RandomVectorRange ( this baseVector, Vector3 rangeVector ) : Vector3
baseVector this
rangeVector Vector3
return Vector3

RandomVectorRange() public static method

public static RandomVectorRange ( this baseVector, Vector4 rangeVector ) : Vector4
baseVector this
rangeVector Vector4
return Vector4