| Matrix22FClampToZero Method (Matrix22F, Single) |
Returns a matrix with the matrix elements clamped 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 static Matrix22F ClampToZero(
Matrix22F matrix,
float epsilon
)
Public Shared Function ClampToZero (
matrix As Matrix22F,
epsilon As Single
) As Matrix22F
public:
static Matrix22F ClampToZero(
Matrix22F matrix,
float epsilon
)
static member ClampToZero :
matrix : Matrix22F *
epsilon : float32 -> Matrix22F
Parameters
- matrix
- Type: DigitalRune.Mathematics.AlgebraMatrix22F
The matrix. - epsilon
- Type: SystemSingle
The tolerance value.
Return Value
Type:
Matrix22FThe matrix with small elements clamped to zero.
Remarks
Each matrix element is compared to zero. If it is in the interval
[-epsilon, +epsilon] it is set to zero, otherwise it
remains unchanged.
See Also