|
enum | vxFunction {
Linear
, QuadraticEaseIn
, QuadraticEaseOut
, QuadraticEaseInOut
,
CubicEaseIn
, CubicEaseOut
, CubicEaseInOut
, QuarticEaseIn
,
QuarticEaseOut
, QuarticEaseInOut
, QuinticEaseIn
, QuinticEaseOut
,
QuinticEaseInOut
, SineEaseIn
, SineEaseOut
, SineEaseInOut
,
CircularEaseIn
, CircularEaseOut
, CircularEaseInOut
, ExponentialEaseIn
,
ExponentialEaseOut
, ExponentialEaseInOut
, ElasticEaseIn
, ElasticEaseOut
,
ElasticEaseInOut
, BackEaseIn
, BackEaseOut
, BackEaseInOut
,
BounceEaseIn
, BounceEaseOut
, BounceEaseInOut
} |
| Easing Functions enumeration.
|
|
|
static float | Cos (float d) |
| The cosine given the angle in degrees.
|
|
static float | Sin (float d) |
|
static float | RoundToNearestHalf (float value) |
| Rounds to nearest half.
|
|
static int | RoundToNearestTen (float value) |
| Rounds to nearest ten.
|
|
static float | RoundToNearestSpecifiedNumber (float value, float valueToRoundTo) |
| Rounds to nearest specified number.
|
|
static Vector2 | RoundVector2 (Vector2 value, float valueToRoundTo) |
| Rounds to nearest specified number.
|
|
static float | DegToRad (float degrees) |
| Converts degrees to radians.
|
|
static float | RadToDeg (float radians) |
| Converts Radians to Degrees.
|
|
static float | Map (float s, float a1, float a2, float b1, float b2) |
|
static int | Map (int s, float a1, float a2, float b1, float b2) |
|
static string | GetVector2String (Vector2 vector, float DecPt) |
| Gets the vector2 string.
|
|
static int | Clamp (int value, int min, int max) |
|
static float | Clamp (float value, float min, float max) |
|
static float | Clamp01 (float value) |
|
static float | Clamp01 (int value) |
|
static Vector2 | GetRotatedVector (float rotation) |
| Gets the rotated vector.
|
|
static float | GetRotationFromDirection (Vector2 direction) |
| Gets the rotation from direction.
|
|
static float | Smooth (float whatItIs, float whatItShouldBe, float stepSize) |
| Smooths a float by a stepsize.
|
|
static int | Smooth (int whatItIs, int whatItShouldBe, int stepSize) |
| Smooths a int by a stepsize.
|
|
static Color | Smooth (Color whatItIs, Color whatItShouldBe, float stepSize) |
| Smooths a Color by a stepsize.
|
|
static Vector2 | Smooth (Vector2 whatItIs, Vector2 whatItShouldBe, float stepSize) |
| Smooths a 2D Vector by a stepsize.
|
|
static Vector3 | Smooth (Vector3 whatItIs, Vector3 whatItShouldBe, float stepSize) |
| Smooths a 3D Vector by a stepsize.
|
|
static float | Ease (float t, vxFunction function) |
| Interpolate using the specified function. Taken from 'https://github.com/acron0/Easings/blob/master/Easings.cs'.
|
|
Math Helper Library with an extension of Mathematically Helpful Functions.