Synced
MathHelper.Clamp
Section titled “MathHelper.Clamp”
- Clamps a value to the inclusive range [min, max].
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Core.Mathematics
Scope: Runtime
Declaration
Section titled “Declaration”public static float InnoEngine.Mathematics.MathHelper.Clamp(float value, float min, float max)Parameters
Section titled “Parameters”Parameter value: The concrete value read or transformed by this operation.
Parameter min: The min consumed by clamp; ownership remains with the caller unless explicitly stated otherwise.
Parameter max: The max consumed by clamp; ownership remains with the caller unless explicitly stated otherwise.
Returns
Section titled “Returns”The scalar result calculated from the supplied inputs.