KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_intersection.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <geometry/intersection.h>

Go to the source code of this file.

Functions

static INTERSECTION_CONTACT contactOf (const INTERSECTABLE_GEOM &aA, const INTERSECTABLE_GEOM &aB)
 
 BOOST_AUTO_TEST_CASE (CrossingGeometryReportsNoSpecialContact)
 
 BOOST_AUTO_TEST_CASE (CollinearSegmentsSharingAnExtentOverlap)
 
 BOOST_AUTO_TEST_CASE (SegmentsWithoutASharedExtentDoNotOverlap)
 
 BOOST_AUTO_TEST_CASE (SegmentGrazingACircleIsTangent)
 
 BOOST_AUTO_TEST_CASE (SegmentGrazingAnArcIsTangentOnlyWhereTheArcRuns)
 
 BOOST_AUTO_TEST_CASE (TangentCirclesReportTangency)
 
 BOOST_AUTO_TEST_CASE (ArcsOnACommonCircleOverlapOnlyWhenTheirSweepsDo)
 
 BOOST_AUTO_TEST_CASE (ContactAccumulatesAcrossVisits)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( ArcsOnACommonCircleOverlapOnlyWhenTheirSweepsDo )

Definition at line 99 of file test_intersection.cpp.

References contactOf().

◆ BOOST_AUTO_TEST_CASE() [2/8]

BOOST_AUTO_TEST_CASE ( CollinearSegmentsSharingAnExtentOverlap )

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( ContactAccumulatesAcrossVisits )

Definition at line 111 of file test_intersection.cpp.

References INTERSECTION_CONTACT::m_Overlapping.

◆ BOOST_AUTO_TEST_CASE() [4/8]

BOOST_AUTO_TEST_CASE ( CrossingGeometryReportsNoSpecialContact )

◆ BOOST_AUTO_TEST_CASE() [5/8]

BOOST_AUTO_TEST_CASE ( SegmentGrazingACircleIsTangent )

Definition at line 68 of file test_intersection.cpp.

References CIRCLE, contactOf(), and INTERSECTION_CONTACT::m_Tangent.

◆ BOOST_AUTO_TEST_CASE() [6/8]

BOOST_AUTO_TEST_CASE ( SegmentGrazingAnArcIsTangentOnlyWhereTheArcRuns )

Definition at line 80 of file test_intersection.cpp.

References contactOf(), and INTERSECTION_CONTACT::m_Tangent.

◆ BOOST_AUTO_TEST_CASE() [7/8]

BOOST_AUTO_TEST_CASE ( SegmentsWithoutASharedExtentDoNotOverlap )

Definition at line 58 of file test_intersection.cpp.

References contactOf(), and INTERSECTION_CONTACT::m_Overlapping.

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( TangentCirclesReportTangency )

Definition at line 91 of file test_intersection.cpp.

References CIRCLE, and contactOf().

◆ contactOf()