|
KiCad PCB EDA Suite
|
Go to the source code of this file.
Functions | |
| static void | CHECK_VEC_NEAR (const VECTOR2I &aActual, const VECTOR2I &aExpected, int aTol) |
| BOOST_AUTO_TEST_CASE (IdentityApply) | |
| BOOST_AUTO_TEST_CASE (TranslateOnly) | |
| BOOST_AUTO_TEST_CASE (RotateOnly) | |
| BOOST_AUTO_TEST_CASE (ScaleOnly) | |
| BOOST_AUTO_TEST_CASE (CompoundSrtOracle) | |
| BOOST_AUTO_TEST_CASE (InverseApplyRoundTrip) | |
| BOOST_AUTO_TEST_CASE (InvertExactWhenUniformOrAxisAligned) | |
| BOOST_AUTO_TEST_CASE (ComposeWithTranslateOnlyOuter) | |
| BOOST_AUTO_TEST_CASE (ComposeWithUniformScaleOuter) | |
| BOOST_AUTO_TEST_CASE (RescaleAroundFixedPointInvariant) | |
| BOOST_AUTO_TEST_CASE (RescaleAroundComposesScale) | |
| BOOST_AUTO_TEST_CASE (RescaleAroundAnchorFollowsCenter) | |
| BOOST_AUTO_TEST_CASE (RescaleAroundRotatedNonUniformScalesLocalAxes) | |
| BOOST_AUTO_TEST_CASE (RescaleAroundRotatedFixedPointInvariant) | |
| BOOST_AUTO_TEST_CASE (ComposeAssociativity) | |
| BOOST_AUTO_TEST_CASE (EqualityAndInequality) | |
| BOOST_AUTO_TEST_CASE (ApplyLinearScaleArithmeticMean) | |
Variables | |
| static constexpr int | IUNIT_TOL = 1 |
| BOOST_AUTO_TEST_CASE | ( | ApplyLinearScaleArithmeticMean | ) |
Definition at line 270 of file test_transform_trs.cpp.
References ANGLE_0, and TRANSFORM_TRS::ApplyLinearScale().
| BOOST_AUTO_TEST_CASE | ( | ComposeAssociativity | ) |
Definition at line 243 of file test_transform_trs.cpp.
References A, ANGLE_0, TRANSFORM_TRS::Apply(), B, C, CHECK_VEC_NEAR(), DEGREES_T, and IUNIT_TOL.
| BOOST_AUTO_TEST_CASE | ( | ComposeWithTranslateOnlyOuter | ) |
Definition at line 159 of file test_transform_trs.cpp.
References ANGLE_0, TRANSFORM_TRS::Apply(), CHECK_VEC_NEAR(), TRANSFORM_TRS::Compose(), DEGREES_T, and IUNIT_TOL.
| BOOST_AUTO_TEST_CASE | ( | ComposeWithUniformScaleOuter | ) |
Definition at line 171 of file test_transform_trs.cpp.
References TRANSFORM_TRS::Apply(), CHECK_VEC_NEAR(), TRANSFORM_TRS::Compose(), and DEGREES_T.
| BOOST_AUTO_TEST_CASE | ( | CompoundSrtOracle | ) |
Definition at line 105 of file test_transform_trs.cpp.
References ANGLE_90, TRANSFORM_TRS::Apply(), CHECK_VEC_NEAR(), TRANSFORM_TRS::InverseApply(), and IUNIT_TOL.
| BOOST_AUTO_TEST_CASE | ( | EqualityAndInequality | ) |
Definition at line 258 of file test_transform_trs.cpp.
References ANGLE_45.
| BOOST_AUTO_TEST_CASE | ( | IdentityApply | ) |
Definition at line 42 of file test_transform_trs.cpp.
References TRANSFORM_TRS::Apply(), CHECK_VEC_NEAR(), TRANSFORM_TRS::InverseApply(), TRANSFORM_TRS::IsIdentity(), and TRANSFORM_TRS::IsUniformScale().
| BOOST_AUTO_TEST_CASE | ( | InverseApplyRoundTrip | ) |
Definition at line 115 of file test_transform_trs.cpp.
References CHECK_VEC_NEAR(), DEGREES_T, and IUNIT_TOL.
| BOOST_AUTO_TEST_CASE | ( | InvertExactWhenUniformOrAxisAligned | ) |
Definition at line 139 of file test_transform_trs.cpp.
References ANGLE_0, TRANSFORM_TRS::Apply(), CHECK_VEC_NEAR(), DEGREES_T, TRANSFORM_TRS::Invert(), and IUNIT_TOL.
| BOOST_AUTO_TEST_CASE | ( | RescaleAroundAnchorFollowsCenter | ) |
Definition at line 206 of file test_transform_trs.cpp.
References ANGLE_0, CHECK_VEC_NEAR(), TRANSFORM_TRS::GetTranslate(), and TRANSFORM_TRS::RescaleAround().
| BOOST_AUTO_TEST_CASE | ( | RescaleAroundComposesScale | ) |
Definition at line 195 of file test_transform_trs.cpp.
References ANGLE_0, TRANSFORM_TRS::GetScaleX(), TRANSFORM_TRS::GetScaleY(), and TRANSFORM_TRS::RescaleAround().
| BOOST_AUTO_TEST_CASE | ( | RescaleAroundFixedPointInvariant | ) |
Definition at line 183 of file test_transform_trs.cpp.
References ANGLE_0, TRANSFORM_TRS::Apply(), CHECK_VEC_NEAR(), IUNIT_TOL, and TRANSFORM_TRS::RescaleAround().
| BOOST_AUTO_TEST_CASE | ( | RescaleAroundRotatedFixedPointInvariant | ) |
Definition at line 230 of file test_transform_trs.cpp.
References TRANSFORM_TRS::Apply(), CHECK_VEC_NEAR(), DEGREES_T, IUNIT_TOL, and TRANSFORM_TRS::RescaleAround().
| BOOST_AUTO_TEST_CASE | ( | RescaleAroundRotatedNonUniformScalesLocalAxes | ) |
Definition at line 216 of file test_transform_trs.cpp.
References DEGREES_T, TRANSFORM_TRS::GetScaleX(), TRANSFORM_TRS::GetScaleY(), and TRANSFORM_TRS::RescaleAround().
| BOOST_AUTO_TEST_CASE | ( | RotateOnly | ) |
Definition at line 67 of file test_transform_trs.cpp.
References ANGLE_0, ANGLE_180, ANGLE_270, ANGLE_90, TRANSFORM_TRS::Apply(), CHECK_VEC_NEAR(), expected, TRANSFORM_TRS::InverseApply(), and IUNIT_TOL.
| BOOST_AUTO_TEST_CASE | ( | ScaleOnly | ) |
Definition at line 88 of file test_transform_trs.cpp.
References ANGLE_0, TRANSFORM_TRS::Apply(), CHECK_VEC_NEAR(), TRANSFORM_TRS::InverseApply(), and TRANSFORM_TRS::IsUniformScale().
| BOOST_AUTO_TEST_CASE | ( | TranslateOnly | ) |
Definition at line 54 of file test_transform_trs.cpp.
References ANGLE_0, TRANSFORM_TRS::Apply(), CHECK_VEC_NEAR(), TRANSFORM_TRS::InverseApply(), and TRANSFORM_TRS::IsIdentity().
|
static |
Definition at line 32 of file test_transform_trs.cpp.
References std::abs(), BOOST_CHECK_MESSAGE(), and CHECK_VEC_NEAR().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and CHECK_VEC_NEAR().
|
staticconstexpr |
Definition at line 29 of file test_transform_trs.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().