| Vector3FClampToZero Method (Single) |
Clamps near-zero vector components to zero.
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public void ClampToZero(
float epsilon
)
Public Sub ClampToZero (
epsilon As Single
)
public:
void ClampToZero(
float epsilon
)
member ClampToZero :
epsilon : float32 -> unit
Parameters
- epsilon
- Type: SystemSingle
The tolerance value.
Remarks
Each vector component is compared to zero. If the component is in the interval
[-epsilon, +epsilon] it is set to zero, otherwise it
remains unchanged.
See Also