 | MathUtilsWrap Method |
Wraps value so that it is between 0.0(included) and 1.0(not included). Examples: 1.5 -> 0.5, 1.0 -> 0.0, -0.75 -> 0.25.
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static float Wrap(
float value
)
Public Shared Function Wrap (
value As Single
) As Single
public:
static float Wrap(
float value
)
static member Wrap :
value : float32 -> float32
Parameters
- value
- Type: SystemSingle
Value to wrap.
Return Value
Type:
Single Wraped value.
See Also