MathUtilEx Class

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(float) int
Gets the smallest integer greater than or equal to the amount.
static
Clamp01(float) float
Clamps the value between 0 and 1.
static
FloorToInt(float) int
Gets largest integer less than or equal to the amount.
static
Interpolate(Color, Color, float, EasingFunction) Color
Performs an interpolation between two colors using an easing function.
static
Interpolate(Color, Color, float, EasingFunction, Color) void
Performs an interpolation between two colors using an easing function.
static
Interpolate(float, float, float, EasingFunction) float
Performs an interpolation between two values using an easing function.
static
Interpolate(Vector2, Vector2, float, EasingFunction) Vector2
Performs an interpolation between two vectors using an easing function.
static
Interpolate(Vector2, Vector2, float, EasingFunction, Vector2) void
Performs an interpolation between two vectors using an easing function.
static
Interpolate(Vector3, Vector3, float, EasingFunction) Vector3
Performs an interpolation between two vectors using an easing function.
static
Interpolate(Vector3, Vector3, float, EasingFunction, Vector3) void
Performs an interpolation between two vectors using an easing function.
static
Interpolate(Vector4, Vector4, float, EasingFunction) Vector4
Performs an interpolation between two vectors using an easing function.
static
Interpolate(Vector4, Vector4, float, EasingFunction, Vector4) void
Performs an interpolation between two vectors using an easing function.
static
LookRotation(Vector3, Vector3, Vector3) Quaternion
Creates a rotation with the specified forward and upwards directions.
static
LookRotation(Vector3, Vector3, Vector3, Quaternion) void
Creates a rotation with the specified forward and upwards directions.
static
Orthonormalize(Vector3, Vector3) void
Orthonormalizes 2 vectors.
static
RoundToInt(float) int
Gets the integer value nearest to the amount.
static
ToQuaternion(Vector3) Quaternion
Convert rotation Euler angles to a Quaternion.
static
ToQuaternion(Vector3, Quaternion) void
Convert rotation Euler angles to a Quaternion.
static
ToRotationEulerXYZ(Quaternion) Vector3
Convert Quaternion to rotation Euler angles.
static
ToRotationEulerXYZ(Quaternion, Vector3) void
Convert Quaternion to rotation Euler angles.
static