FloatExt.Clamp Method (Single)

Clamps a value to [0.0, 1.0].

Namespace: UltimateXR.Extensions.System.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static float Clamp(
	this ref float self
)

Parameters

 

self
Type: System.Single
Value to clamp

Return Value

Type: Single
Clamped value between [0.0, 1.0]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

FloatExt Class
Clamp Overload
UltimateXR.Extensions.System.Math Namespace