Summary
Some more common utility methods for math operations.
- Namespace
- StrideToolkit
.Mathematics - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["MathUtilEx"]
class Type type-node
Syntax
public static class MathUtilEx
Methods
| Name | Value | Summary |
|---|---|---|
| CeilingToInt |
int |
Gets the smallest integer greater than or equal to the amount.
static
|
| Clamp01 |
float |
Clamps the value between 0 and 1.
static
|
| FloorToInt |
int |
Gets largest integer less than or equal to the amount.
static
|
| Interpolate |
Color |
Performs an interpolation between two colors using an easing function.
static
|
| Interpolate |
void |
Performs an interpolation between two colors using an easing function.
static
|
| Interpolate |
float |
Performs an interpolation between two values using an easing function.
static
|
| Interpolate |
Vector2 |
Performs an interpolation between two vectors using an easing function.
static
|
| Interpolate |
void |
Performs an interpolation between two vectors using an easing function.
static
|
| Interpolate |
Vector3 |
Performs an interpolation between two vectors using an easing function.
static
|
| Interpolate |
void |
Performs an interpolation between two vectors using an easing function.
static
|
| Interpolate |
Vector4 |
Performs an interpolation between two vectors using an easing function.
static
|
| Interpolate |
void |
Performs an interpolation between two vectors using an easing function.
static
|
| LookRotation |
Quaternion |
Creates a rotation with the specified forward and upwards directions.
static
|
| LookRotation |
void |
Creates a rotation with the specified forward and upwards directions.
static
|
| Orthonormalize |
void |
Orthonormalizes 2 vectors.
static
|
| RoundToInt |
int |
Gets the integer value nearest to the amount.
static
|
| ToQuaternion |
Quaternion |
Convert rotation Euler angles to a
Quaternion.
static
|
| ToQuaternion |
void |
Convert rotation Euler angles to a
Quaternion.
static
|
| ToRotationEulerXYZ |
Vector3 |
Convert
Quaternion to rotation Euler angles.
static
|
| ToRotationEulerXYZ |
void |
Convert
Quaternion to rotation Euler angles.
static
|
