KiCad PCB EDA Suite
|
Go to the source code of this file.
Classes | |
struct | TEST_CALC_ARC_CENTER_CASE |
Functions | |
static bool | Ref0CircleCenterFrom3Points (const VECTOR2D &p1, const VECTOR2D &p2, const VECTOR2D &p3, VECTOR2D *aCenter) |
Test suite for KiCad math code. More... | |
static const VECTOR2D | Ref1CalcArcCenter (const VECTOR2D &aStart, const VECTOR2D &aMid, const VECTOR2D &aEnd) |
BOOST_AUTO_TEST_CASE (TestCalcArcCenter3Pts) | |
Declare the test suite. More... | |
BOOST_AUTO_TEST_CASE (TestInterceptsPositiveX) | |
BOOST_AUTO_TEST_CASE (TestInterceptsNegativeX) | |
BOOST_AUTO_TEST_CASE | ( | TestCalcArcCenter3Pts | ) |
Declare the test suite.
Definition at line 164 of file test_kimath.cpp.
References std::abs(), CalcArcCenter(), EuclideanNorm(), Ref0CircleCenterFrom3Points(), Ref1CalcArcCenter(), RotatePoint(), VECTOR2< T >::x, and VECTOR2< T >::y.
BOOST_AUTO_TEST_CASE | ( | TestInterceptsNegativeX | ) |
Definition at line 308 of file test_kimath.cpp.
References BOOST_CHECK(), and InterceptsNegativeX().
BOOST_AUTO_TEST_CASE | ( | TestInterceptsPositiveX | ) |
Definition at line 297 of file test_kimath.cpp.
References BOOST_CHECK(), and InterceptsPositiveX().
|
static |
Test suite for KiCad math code.
Definition at line 58 of file test_kimath.cpp.
References VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 82 of file test_kimath.cpp.
References std::abs(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BOOST_AUTO_TEST_CASE().