| Matrix44FClampToZero Method (Matrix44F) |
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 Matrix44F ClampToZero(
Matrix44F matrix
)
Public Shared Function ClampToZero (
matrix As Matrix44F
) As Matrix44F
public:
static Matrix44F ClampToZero(
Matrix44F matrix
)
static member ClampToZero :
matrix : Matrix44F -> Matrix44F
Parameters
- matrix
- Type: DigitalRune.Mathematics.AlgebraMatrix44F
The matrix.
Return Value
Type:
Matrix44FThe matrix with small elements clamped to zero.
Remarks
Each matrix element is compared to zero. If it is in the interval
[-
EpsilonF, +
EpsilonF] it is set to zero,
otherwise it remains unchanged.
See Also