KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_shape_nearest_points.cpp File Reference

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (NearestPoints_CircleToCircle_Separate)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_CircleToCircle_Concentric)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_CircleToCircle_Overlapping)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_CircleToRect_Outside)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_CircleToRect_Inside)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_CircleToSegment)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_CircleToSegment_CenterOnSegment)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_RectToRect_Separate)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_RectToRect_Corner)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_LineChainToLineChain)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_LineChainWithArc)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_ArcToArc)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_ArcToCircle)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_SegmentToSegment)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_SegmentToCircle)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_CompoundShapes)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_PolySetToCircle)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_RectToSegment)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_RectToLineChain)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_SegmentToLineChain)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_CircleToLineChain)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_ArcToRect)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_ArcToSegment)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_ArcToLineChain)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_DistanceValidation)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_SymmetryTest)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_MinimumDistanceValidation)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_LineChainWithMixedArcs)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_DegenerateShapes_ZeroWidthRect)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_DegenerateShapes_ZeroLengthSegment)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_SinglePointLineChain)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_NegativeCoordinates)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_IdenticalShapes)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_ZeroSizeShapes)
 
 BOOST_AUTO_TEST_CASE (NearestPoints_VeryCloseShapes)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_ArcToArc )

◆ BOOST_AUTO_TEST_CASE() [2/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_ArcToCircle )

◆ BOOST_AUTO_TEST_CASE() [3/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_ArcToLineChain )

Definition at line 396 of file test_shape_nearest_points.cpp.

References BOOST_CHECK_MESSAGE(), chain, and result.

◆ BOOST_AUTO_TEST_CASE() [4/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_ArcToRect )

◆ BOOST_AUTO_TEST_CASE() [5/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_ArcToSegment )

◆ BOOST_AUTO_TEST_CASE() [6/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_CircleToCircle_Concentric )

◆ BOOST_AUTO_TEST_CASE() [7/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_CircleToCircle_Overlapping )

◆ BOOST_AUTO_TEST_CASE() [8/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_CircleToCircle_Separate )

◆ BOOST_AUTO_TEST_CASE() [9/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_CircleToLineChain )

Definition at line 349 of file test_shape_nearest_points.cpp.

References BOOST_CHECK_MESSAGE(), chain, circle(), and result.

◆ BOOST_AUTO_TEST_CASE() [10/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_CircleToRect_Inside )

Definition at line 95 of file test_shape_nearest_points.cpp.

References BOOST_CHECK_MESSAGE(), circle(), and result.

◆ BOOST_AUTO_TEST_CASE() [11/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_CircleToRect_Outside )

Definition at line 82 of file test_shape_nearest_points.cpp.

References BOOST_CHECK_MESSAGE(), circle(), and result.

◆ BOOST_AUTO_TEST_CASE() [12/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_CircleToSegment )

Definition at line 112 of file test_shape_nearest_points.cpp.

References BOOST_CHECK_MESSAGE(), circle(), and result.

◆ BOOST_AUTO_TEST_CASE() [13/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_CircleToSegment_CenterOnSegment )

Definition at line 125 of file test_shape_nearest_points.cpp.

References BOOST_CHECK_MESSAGE(), circle(), and result.

◆ BOOST_AUTO_TEST_CASE() [14/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_CompoundShapes )

◆ BOOST_AUTO_TEST_CASE() [15/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_DegenerateShapes_ZeroLengthSegment )

Definition at line 518 of file test_shape_nearest_points.cpp.

References BOOST_CHECK_MESSAGE(), circle(), and result.

◆ BOOST_AUTO_TEST_CASE() [16/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_DegenerateShapes_ZeroWidthRect )

◆ BOOST_AUTO_TEST_CASE() [17/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_DistanceValidation )

◆ BOOST_AUTO_TEST_CASE() [18/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_IdenticalShapes )

◆ BOOST_AUTO_TEST_CASE() [19/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_LineChainToLineChain )

◆ BOOST_AUTO_TEST_CASE() [20/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_LineChainWithArc )

◆ BOOST_AUTO_TEST_CASE() [21/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_LineChainWithMixedArcs )

◆ BOOST_AUTO_TEST_CASE() [22/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_MinimumDistanceValidation )

◆ BOOST_AUTO_TEST_CASE() [23/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_NegativeCoordinates )

◆ BOOST_AUTO_TEST_CASE() [24/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_PolySetToCircle )

◆ BOOST_AUTO_TEST_CASE() [25/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_RectToLineChain )

◆ BOOST_AUTO_TEST_CASE() [26/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_RectToRect_Corner )

◆ BOOST_AUTO_TEST_CASE() [27/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_RectToRect_Separate )

◆ BOOST_AUTO_TEST_CASE() [28/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_RectToSegment )

◆ BOOST_AUTO_TEST_CASE() [29/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_SegmentToCircle )

◆ BOOST_AUTO_TEST_CASE() [30/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_SegmentToLineChain )

◆ BOOST_AUTO_TEST_CASE() [31/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_SegmentToSegment )

◆ BOOST_AUTO_TEST_CASE() [32/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_SinglePointLineChain )

◆ BOOST_AUTO_TEST_CASE() [33/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_SymmetryTest )

Definition at line 434 of file test_shape_nearest_points.cpp.

References BOOST_CHECK_MESSAGE(), and SHAPE::NearestPoints().

◆ BOOST_AUTO_TEST_CASE() [34/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_VeryCloseShapes )

◆ BOOST_AUTO_TEST_CASE() [35/35]

BOOST_AUTO_TEST_CASE ( NearestPoints_ZeroSizeShapes )