Synced
MathHelper
Section titled “MathHelper”
- Contains commonly used precalculated values and mathematical operations.
Required contracts
Section titled “Required contracts”API: scripting
Inherits: object
Project: Inno.Core.Mathematics
Scope: Runtime
Declaration
Section titled “Declaration”public static class InnoEngine.Mathematics.MathHelperMembers
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Fields | MathHelper.C_TOLERANCE | The c tolerance value used as part of this type’s public representation. |
| Methods | MathHelper.AlmostEquals | Determines whether two floating-point numbers are approximately equal, using a relative tolerance based on the magnitude of the numbers. This is useful for comparing floats where rounding errors may occur. |
| Methods | MathHelper.Barycentric | Returns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized barycentric (areal) coordinates. |
| Methods | MathHelper.CatmullRom | Performs a Catmull-Rom interpolation using the specified positions. |
| Methods | MathHelper.Clamp | Clamps a value to the inclusive range [min, max]. |
| Methods | MathHelper.Distance | Calculates the absolute value of the difference of two values. |
| Methods | MathHelper.Hermite | Performs a Hermite spline interpolation. |
| Methods | MathHelper.IsFinite | Returns true if the value is finite (not NaN or infinity). |
| Methods | MathHelper.IsPowerOfTwo | Determines if value is powered by two. |
| Methods | MathHelper.Lerp | Linearly interpolates between two values. |
| Methods | MathHelper.LerpPrecise | Linearly interpolates between two values. This method is a less efficient, more precise version of M:MathHelper.Lerp(System.Single,System.Single,System.Single). See remarks for more info. |
| Methods | MathHelper.LerpUnclamped | Linearly interpolates between two values without clamping the amount. |
| Methods | MathHelper.Saturate | Clamps a value to the inclusive range [0, 1]. |
| Methods | MathHelper.SmoothStep | Interpolates between two values using a cubic equation. |
| Methods | MathHelper.ToDegrees | Converts radians to degrees. |
| Methods | MathHelper.ToRadians | Converts degrees to radians. |
| Methods | MathHelper.WrapAngle | Reduces a given angle to a value between π and -π. |