matrixMoreOrLessEquals function Null safety

Matcher matrixMoreOrLessEquals(
  1. Matrix4 value,
  2. {double epsilon = precisionErrorTolerance}
)

Asserts that two Matrix4s are equal, within some tolerated error.

Two values are considered equal if the difference between them is within precisionErrorTolerance of the larger one. This is an arbitrary value which can be adjusted using the epsilon argument. This matcher is intended to compare floating point numbers that are the result of different sequences of operations, such that they may have accumulated slightly different errors.

See also:

Implementation

Matcher matrixMoreOrLessEquals(Matrix4 value, { double epsilon = precisionErrorTolerance }) {
  return _IsWithinDistance<Matrix4>(_matrixDistance, value, epsilon);
}