24#ifndef QA_UNIT_TEST_UTILS_GEOM__H
25#define QA_UNIT_TEST_UTILS_GEOM__H
50template <
typename VEC>
51bool IsVecWithinTol(
const VEC& aVec,
const VEC& aExp,
typename VEC::coord_type aTol )
60template <
typename BOX>
61bool IsBoxWithinTol(
const BOX& aBox,
const BOX& aExp,
typename BOX::coord_type aTol )
A 2D bounding box built on top of an origin point and size vector.
constexpr const Vec & GetOrigin() const
constexpr const SizeVec & GetSize() const
Define a general 2D-vector/point.
std::ostream & boost_test_print_type(std::ostream &os, const BOX2< T > &aBox)
Define a stream function for logging this type.
bool IsBoxWithinTol(const BOX &aBox, const BOX &aExp, typename BOX::coord_type aTol)
Check that a box is close enough to another box.
bool IsWithin(T aValue, T aNominal, T aError)
Check if a value is within a tolerance of a nominal value.
bool IsVecWithinTol(const VEC &aVec, const VEC &aExp, typename VEC::coord_type aTol)
Check that both x and y of a vector are within expected error.
Numerical test predicates.