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

API: engine
Project: Inno.Core.Mathematics

public static float Inno.Core.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.