![]() |
Vertices Engine
v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
|
Math Helper Library with an extension of Mathematically Helpful Functions. More...
Classes | |
class | EasingFunctions |
Public Types | |
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 Public Member Functions | |
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.
|
static |
The cosine given the angle in degrees.
d | The angle in degrees |
|
static |
Converts degrees to radians.
degrees |
|
static |
Gets the rotated vector.
rotation | Rotation. |
|
static |
Gets the rotation from direction.
direction | Direction. |
|
static |
Gets the vector2 string.
vector | Vector. |
DecPt | Dec point. |
|
static |
Converts Radians to Degrees.
radians |
|
static |
Rounds to nearest half.
value | Value. |
|
static |
Rounds to nearest specified number.
value | Value. |
valueToRoundTo | Value to round to. |
|
static |
Rounds to nearest ten.
value | The index. |
|
static |
Rounds to nearest specified number.
value | Value. |
valueToRoundTo | Value to round to. |
|
static |
Smooths a Color by a stepsize.
whatItIs | What it is. |
whatItShouldBe | What it should be. |
stepSize | Step size. |
|
static |
Smooths a float by a stepsize.
whatItIs | What it is. |
whatItShouldBe | What it should be. |
stepSize | Step size. |
|
static |
Smooths a int by a stepsize.
whatItIs | What it is. |
whatItShouldBe | What it should be. |
stepSize | Step size. |
|
static |
Smooths a 2D Vector by a stepsize.
whatItIs | What it is. |
whatItShouldBe | What it should be. |
stepSize | Step size. |
|
static |
Smooths a 3D Vector by a stepsize.
whatItIs | What it is. |
whatItShouldBe | What it should be. |
stepSize | Step size. |