Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Clamps a value to the inclusive range [min, max].

API: scripting
Project: Inno.Core.Mathematics
Scope: Runtime

public static float InnoEngine.Mathematics.MathHelper.Clamp(float value, float min, float max)

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.

The scalar result calculated from the supplied inputs.