Click or drag to resize
DigitalRuneVector4DClampToZero Method (Vector4D, Double)
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 Vector4D ClampToZero(
	Vector4D vector,
	double epsilon
)

Parameters

vector
Type: DigitalRune.Mathematics.AlgebraVector4D
The vector.
epsilon
Type: SystemDouble
The tolerance value.

Return Value

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