Click or drag to resize
DigitalRuneVector3FClampToZero Method (Vector3F, Single)
Returns a vector with near-zero vector components clamped to 0.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static Vector3F ClampToZero(
	Vector3F vector,
	float epsilon
)

Parameters

vector
Type: DigitalRune.Mathematics.AlgebraVector3F
The vector.
epsilon
Type: SystemSingle
The tolerance value.

Return Value

Type: Vector3F
The vector with small components clamped to zero.
Remarks
Each vector component (X, Y and Z) is compared to zero. If the component is in the interval [-epsilon, +epsilon] it is set to zero, otherwise it remains unchanged.
See Also