| VectorFClamp Method (Single, Single) |
Clamps the vector elements to the range [min, max].
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public void Clamp(
float min,
float max
)
Public Sub Clamp (
min As Single,
max As Single
)
public:
void Clamp(
float min,
float max
)
member Clamp :
min : float32 *
max : float32 -> unit
Parameters
- min
- Type: SystemSingle
The min limit. - max
- Type: SystemSingle
The max limit.
Remarks
This operation is carried out per element. Element values less than min
are set to min. Element values greater than max are
set to max.
See Also