54template <
typename VEC>
55bool IsVecWithinTol(
const VEC& aVec,
const VEC& aExp,
typename VEC::coord_type aTol )
64template <
typename BOX>
65bool 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
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
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 ChainsAreCyclicallyEqual(const SHAPE_LINE_CHAIN &aChainA, const SHAPE_LINE_CHAIN &aChainB, int aTol)
Check that two chains are cyclically equal.
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.