closeToAabb function
Returns a matcher which checks if the argument is an axis-aligned bounding
box sufficiently close (within distance epsilon
) to expected
. Example
of usage:
expect(
component.aabb,
closeToAabb(Aabb2.minMax(Vector2.zero(), Vector2.all(1)), 1e-5),
);
Implementation
Matcher closeToAabb(Aabb2 expected, [double epsilon = 1e-15]) {
return _IsCloseToAabb(expected, epsilon);
}