MCPcopy Create free account
hub / github.com/comaps/comaps / AlmostEqualAbs

Function AlmostEqualAbs

libs/geometry/rect2d.hpp:290–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288
289template <typename T>
290bool AlmostEqualAbs(Rect<T> const & a, Rect<T> const & b, double eps)
291{
292 return AlmostEqualAbs(a.LeftTop(), b.LeftTop(), eps) && AlmostEqualAbs(a.RightBottom(), b.RightBottom(), eps);
293}
294
295template <typename T>
296bool IsEqual(Rect<T> const & r1, Rect<T> const & r2, double epsX, double epsY)

Callers 12

GetDistanceFunction · 0.70
EqualPointsMethod · 0.70
HasPointMethod · 0.70
AreaOnEarthFunction · 0.70
FromEarth3dToSphericalFunction · 0.70
UNIT_TESTFunction · 0.50
UNIT_TESTFunction · 0.50
UNIT_TESTFunction · 0.50
TestIntersectionResultFunction · 0.50
UNIT_TESTFunction · 0.50
ConvergenceTestFunction · 0.50

Calls 2

LeftTopMethod · 0.80
RightBottomMethod · 0.80

Tested by 6

UNIT_TESTFunction · 0.40
UNIT_TESTFunction · 0.40
UNIT_TESTFunction · 0.40
TestIntersectionResultFunction · 0.40
UNIT_TESTFunction · 0.40
ConvergenceTestFunction · 0.40