KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_transform_trs.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <geometry/transform_trs.h>
#include <cmath>

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 (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 (EqualityAndInequality)
 
 BOOST_AUTO_TEST_CASE (ApplyLinearScaleArithmeticMean)
 
 BOOST_AUTO_TEST_CASE (RoundingNoiseKeepsScaleUniform)
 

Variables

static constexpr int IUNIT_TOL = 1
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/14]

BOOST_AUTO_TEST_CASE ( ApplyLinearScaleArithmeticMean )

Definition at line 213 of file test_transform_trs.cpp.

References ANGLE_0, and TRANSFORM_TRS::ApplyLinearScale().

◆ BOOST_AUTO_TEST_CASE() [2/14]

BOOST_AUTO_TEST_CASE ( CompoundSrtOracle )

◆ BOOST_AUTO_TEST_CASE() [3/14]

BOOST_AUTO_TEST_CASE ( EqualityAndInequality )

Definition at line 201 of file test_transform_trs.cpp.

References ANGLE_45.

◆ BOOST_AUTO_TEST_CASE() [4/14]

◆ BOOST_AUTO_TEST_CASE() [5/14]

BOOST_AUTO_TEST_CASE ( InverseApplyRoundTrip )

Definition at line 117 of file test_transform_trs.cpp.

References CHECK_VEC_NEAR(), DEGREES_T, and IUNIT_TOL.

◆ BOOST_AUTO_TEST_CASE() [6/14]

BOOST_AUTO_TEST_CASE ( RescaleAroundAnchorFollowsCenter )

◆ BOOST_AUTO_TEST_CASE() [7/14]

BOOST_AUTO_TEST_CASE ( RescaleAroundComposesScale )

◆ BOOST_AUTO_TEST_CASE() [8/14]

BOOST_AUTO_TEST_CASE ( RescaleAroundFixedPointInvariant )

◆ BOOST_AUTO_TEST_CASE() [9/14]

BOOST_AUTO_TEST_CASE ( RescaleAroundRotatedFixedPointInvariant )

◆ BOOST_AUTO_TEST_CASE() [10/14]

BOOST_AUTO_TEST_CASE ( RescaleAroundRotatedNonUniformScalesLocalAxes )

◆ BOOST_AUTO_TEST_CASE() [11/14]

BOOST_AUTO_TEST_CASE ( RotateOnly )

◆ BOOST_AUTO_TEST_CASE() [12/14]

BOOST_AUTO_TEST_CASE ( RoundingNoiseKeepsScaleUniform )

◆ BOOST_AUTO_TEST_CASE() [13/14]

BOOST_AUTO_TEST_CASE ( ScaleOnly )

◆ BOOST_AUTO_TEST_CASE() [14/14]

BOOST_AUTO_TEST_CASE ( TranslateOnly )

◆ CHECK_VEC_NEAR()

Variable Documentation

◆ IUNIT_TOL

int IUNIT_TOL = 1
staticconstexpr