GeometryUtilClamp Method
Clamp the supplied value within the allowed minimum and maximum values.
Namespace: GeometryAssembly: Geometry (in Geometry.dll) Version: 25.2414.4032
public static float Clamp(
float value,
float minimum = 0f,
float maximum = 1f
)
Public Shared Function Clamp (
value As Single,
Optional minimum As Single = 0F,
Optional maximum As Single = 1F
) As Single
No code example is currently available or this language may not be supported.
- value Single
-
The value to clamp.
- minimum Single (Optional)
-
The minimum allowable value.
- maximum Single (Optional)
-
The maximum allowable value.
Single
The caller's clamped value.