Click or drag to resize
DigitalRuneVector4F.Clamp Method (Vector4F, Single, Single)
Returns a vector with the vector components clamped to the range [min, max].

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static Vector4F Clamp(
	Vector4F vector,
	float min,
	float max
)

Parameters

vector
Type: DigitalRune.Mathematics.Algebra.Vector4F
The vector.
min
Type: System.Single
The min limit.
max
Type: System.Single
The max limit.

Return Value

Type: Vector4F
A vector with clamped components.
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