MathUtilEx.

Clamp01(float) Method

Summary

Clamps the value between 0 and 1.
Namespace
StrideToolkit.Mathematics
Containing Type
MathUtilEx

Syntax

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float Clamp01(float value)

Attributes

Type Description
MethodImplAttribute

Parameters

Name Type Description
value float The Value.

Return Value

Type Description
float Value clamped between 0 and 1.