52 { 90.0, 90.0, -270.0, 90.0, 90.0, 90.0 },
53 { -90.0, 270.0, -90.0, -90.0, -90.0, -90.0 },
54 { 135.0, 135.0, -225.0, -45.0, 135.0, 135.0 },
55 { -135.0, 225.0, -135.0, 45.0, -135.0, -135.0 },
56 { 180.0, 180.0, -180.0, 0.0, 180.0, 180.0 },
57 { -180.0, 180.0, -180.0, 0.0, 180.0, -180.0 },
58 { 360.0, 0.0, 0.0, 0.0, 0.0, 0.0 },
59 { -360.0, 0.0, 0.0, 0.0, 0.0, -360.0 },
60 { 390.0, 30.0, -330.0, 30.0, 30.0, 30.0 },
61 { -390.0, 330.0, -30.0, -30.0, -30.0, -30.0 },
62 { 720.0, 0.0, 0.0, 0.0, 0.0, 0.0 },
63 { -720.0, 0.0, 0.0, 0.0, 0.0, -360.0 },
71 BOOST_TEST_INFO_SCOPE(
"Original angle: " << c.m_Angle <<
" degrees" );
88 BOOST_CHECK_EQUAL( normalized.
AsDegrees(), c.m_ExpNormalized );
89 BOOST_CHECK_EQUAL( normalizedNegative.
AsDegrees(), c.m_ExpNormalizedNegative );
90 BOOST_CHECK_EQUAL( normalized90.
AsDegrees(), c.m_ExpNormalized90 );
91 BOOST_CHECK_EQUAL( normalized180.
AsDegrees(), c.m_ExpNormalized180 );
92 BOOST_CHECK_EQUAL( normalized720.
AsDegrees(), c.m_ExpNormalized720 );
EDA_ANGLE NormalizeNegative()
static constexpr EDA_ANGLE ANGLE_0
static constexpr EDA_ANGLE ANGLE_90
static constexpr EDA_ANGLE ANGLE_VERTICAL
static constexpr EDA_ANGLE ANGLE_HORIZONTAL
static constexpr EDA_ANGLE ANGLE_45
static constexpr EDA_ANGLE ANGLE_270
static constexpr EDA_ANGLE FULL_CIRCLE
static constexpr EDA_ANGLE ANGLE_360
static constexpr EDA_ANGLE ANGLE_180
static constexpr EDA_ANGLE ANGLE_135
double m_ExpNormalized180
double m_ExpNormalized720
double m_ExpNormalizedNegative
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_CASE(Normalize)
static const std::vector< EDA_ANGLE_NORMALISE_CASE > normalize_cases
BOOST_AUTO_TEST_SUITE_END()