| Matrix22DClampToZero Method (Matrix22D, Double) |
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 Matrix22D ClampToZero(
Matrix22D matrix,
double epsilon
)
Public Shared Function ClampToZero (
matrix As Matrix22D,
epsilon As Double
) As Matrix22D
public:
static Matrix22D ClampToZero(
Matrix22D matrix,
double epsilon
)
static member ClampToZero :
matrix : Matrix22D *
epsilon : float -> Matrix22D
Parameters
- matrix
- Type: DigitalRune.Mathematics.AlgebraMatrix22D
The matrix. - epsilon
- Type: SystemDouble
The tolerance value.
Return Value
Type:
Matrix22DThe 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