49 "Issue 13626: clockwise semicircle",
50 {-428880000, 117229160 },
51 {-430060565, 113472820 },
53 {-431241130, 109716480 },
57 "Issue 13626: anticlockwise arc",
58 { -431241130, 109716480 },
59 { -434923630, 112954230 },
61 { -439827050, 112936200 },
71 BOOST_TEST_INFO_SCOPE( c.m_CaseName );
79 BOOST_CHECK_EQUAL( shape.
EndsSwapped(), c.m_ExpectedStartEndSwapped );
83 BOOST_CHECK_PREDICATE(
84 KI_TEST::IsVecWithinTol<VECTOR2I>,
90BOOST_AUTO_TEST_SUITE_END()
EDA_SHAPE_MOCK(SHAPE_T aShapeType)
void SetCenter(const VECTOR2I &aCenter)
const VECTOR2I & GetEnd() const
Return the ending point of the graphic.
void SetStart(const VECTOR2I &aStart)
const VECTOR2I & GetStart() const
Return the starting point of the graphic.
bool EndsSwapped() const
Have the start and end points been swapped since they were set?
void SetArcAngleAndEnd(const EDA_ANGLE &aAngle, bool aCheckNegativeAngle=false)
Set the end point from the angle center and start.
static double DefaultAccuracyForPCB()
bool m_ExpectedStartEndSwapped
VECTOR2I m_ExpectedEndBeforeSwap
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_CASE(SetAngleAndEnd)
static const std::vector< SET_ANGLE_END_CASE > set_angle_end_cases