53 "Append a point on x",
54 { vt::VT_POINT, { 500000, 0 } },
55 { { 0, 0 }, { 500000, 0 } },
59 "Append a point on y",
60 { vt::VT_POINT, { 0, 500000 } },
61 { { 0, 0 }, { 0, 500000 } },
65 "Append a Semicircle (clockwise)",
66 { vt::CLOCKWISE_SEMICIRCLE, { 500000, 0 } },
67 { { 0, 0 }, { 500000, 250000 } },
71 "Append a Semicircle (anticlockwise)",
72 { vt::ANTICLOCKWISE_SEMICIRCLE, { 500000, 0 } },
73 { { 0, -250000 }, { 500000, 250000 } },
77 "Append a 90 degree Arc (clockwise)",
78 { vt::CLOCKWISE_ARC, { 250000, 250000 }, { 250000, 0 } },
79 { { 0, 0 }, { 250000, 250000 } },
83 "Append a 90 degree Arc (anticlockwise)",
84 { vt::ANTICLOCKWISE_ARC, { 250000, -250000 }, { 250000, 0 } },
85 { { 0, -250000 }, { 250000, 250000 } },
94 static const std::vector<VECTOR2D> coordinateMultipliers =
107 BOOST_TEST_INFO_SCOPE( c.m_CaseName );
109 for(
const VECTOR2D& mult : coordinateMultipliers )
111 BOOST_TEST_INFO_SCOPE(
"Applied scaling x=" << mult.x <<
" y=" << mult.y );
115 auto transformCoord =
118 int x = double( aPt.x ) * mult.x;
119 int y = double( aPt.y ) * mult.y;
125 BOX2I expBoxTransformed;
126 expBoxTransformed.
SetOrigin( transformCoord( c.m_ExpBBox.GetPosition() ) );
127 expBoxTransformed.
SetSize( transformCoord( c.m_ExpBBox.GetSize() ) );
132 (
chain.BBox().GetPosition() )( expBoxTransformed.
GetPosition() ) ( c.m_ExpBBoxError ) );
136 (
chain.BBox().GetSize() )( expBoxTransformed.
GetSize() ) ( c.m_ExpBBoxError ) );
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.