| Vector4DClamp Method (Double, Double) |
Clamps the vector components 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(
double min,
double max
)
Public Sub Clamp (
min As Double,
max As Double
)
public:
void Clamp(
double min,
double max
)
member Clamp :
min : float *
max : float -> unit
Parameters
- min
- Type: SystemDouble
The min limit. - max
- Type: SystemDouble
The max limit.
Remarks
This operation is carried out per component. Component values less than
min are set to min. Component values greater than
max are set to max.
See Also