Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc File Reference
#include "geom_algorithms_test_common.h"
#include <algorithm>
#include <random>
#include <cmath>
#include <utility>
#include <vector>
Include dependency graph for geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc:

Go to the source code of this file.

Functions

 TEST_F (GeomAlgorithmsTest, ClosestPairEmptyInputThrows)
 
 TEST_F (GeomAlgorithmsTest, ClosestPairSinglePointThrows)
 
 TEST_F (GeomAlgorithmsTest, ClosestPairAllDuplicates)
 
 TEST_F (GeomAlgorithmsTest, TriangulateTwoVerticesThrows)
 
 TEST_F (GeomAlgorithmsTest, RotatingCalipersOpenSingleVertexThrows)
 
 TEST_F (GeomAlgorithmsTest, PointInPolygonTwoVerticesThrows)
 
 TEST_F (GeomAlgorithmsTest, AndrewMonotonicChainTwoPoints)
 
 TEST_F (GeomAlgorithmsTest, AndrewMonotonicChainEmptyInput)
 
 TEST_F (GeomAlgorithmsTest, AndrewMonotonicChainSinglePoint)
 
 TEST_F (GeomAlgorithmsTest, AndrewMonotonicChainAllDuplicates)
 
 TEST_F (GeomAlgorithmsTest, GrahamScanEmptyInput)
 
 TEST_F (GeomAlgorithmsTest, GrahamScanSinglePoint)
 
 TEST_F (GeomAlgorithmsTest, GrahamScanTwoPoints)
 
 TEST_F (GeomAlgorithmsTest, GrahamScanAllDuplicates)
 
 TEST_F (GeomAlgorithmsTest, AllHullAlgorithmsAgreeOnRandomInput)
 
 TEST_F (GeomAlgorithmsTest, DelaunayAsTrianglesProducesValidTriangles)
 
 TEST_F (GeomAlgorithmsTest, SegmentSegmentIntersectionNoIntersection)
 
 TEST_F (GeomAlgorithmsTest, SegmentSegmentIntersectionProperCross)
 
 TEST_F (GeomAlgorithmsTest, SegmentSegmentIntersectionEndpointTouch)
 
 TEST_F (GeomAlgorithmsTest, SegmentSegmentIntersectionCollinearOverlap)
 
 TEST_F (GeomAlgorithmsTest, SegmentSegmentIntersectionVerticalOverlap)
 
 TEST_F (GeomAlgorithmsTest, SegmentSegmentIntersectionDegeneratePointOnSegment)
 
 TEST_F (GeomAlgorithmsTest, SegmentSegmentIntersectionDegenerateIdenticalPoints)
 
 TEST_F (GeomAlgorithmsTest, SegmentSegmentIntersectionDegenerateDisjointPoints)
 
 TEST_F (GeomAlgorithmsTest, SegmentSegmentIntersectionCollinearTouchPoint)
 
 TEST_F (GeomAlgorithmsTest, SegmentSegmentIntersectionFreeFunction)
 
 TEST_F (GeomAlgorithmsTest, SweepLineNoSegments)
 
 TEST_F (GeomAlgorithmsTest, SweepLineSingleSegment)
 
 TEST_F (GeomAlgorithmsTest, SweepLineParallelNoIntersection)
 
 TEST_F (GeomAlgorithmsTest, SweepLineSimpleCross)
 
 TEST_F (GeomAlgorithmsTest, SweepLineMultipleIntersections)
 
 TEST_F (GeomAlgorithmsTest, SweepLineDisjointSegments)
 
 TEST_F (GeomAlgorithmsTest, SweepLineTShapedIntersection)
 
 TEST_F (GeomAlgorithmsTest, SweepLineDegenerateSegmentThrows)
 
 TEST_F (GeomAlgorithmsTest, SweepLineFourSegmentsStar)
 
 TEST_F (GeomAlgorithmsTest, MonotoneTriangulateTriangle)
 
 TEST_F (GeomAlgorithmsTest, MonotoneTriangulateSquare)
 
 TEST_F (GeomAlgorithmsTest, MonotoneTriangulateSquareCW)
 
 TEST_F (GeomAlgorithmsTest, MonotoneTriangulatePentagon)
 
 TEST_F (GeomAlgorithmsTest, MonotoneTriangulateHexagon)
 
 TEST_F (GeomAlgorithmsTest, MonotoneTriangulateOpenThrows)
 
 TEST_F (GeomAlgorithmsTest, MonotoneTriangulateDegenerateThrows)
 
 TEST_F (GeomAlgorithmsTest, MonotoneTriangulateCountMatchesCuttingEars)
 
 TEST_F (GeomAlgorithmsTest, MinkowskiSumTwoSquares)
 
 TEST_F (GeomAlgorithmsTest, MinkowskiSumSquareAndTriangle)
 
 TEST_F (GeomAlgorithmsTest, MinkowskiSumCWInputsNormalized)
 
 TEST_F (GeomAlgorithmsTest, MinkowskiSumNonConvexThrows)
 
 TEST_F (GeomAlgorithmsTest, MinkowskiSumOpenPolygonThrows)
 
 TEST_F (GeomAlgorithmsTest, MinkowskiSumIsConvex)
 
static Point first_vertex_of (const Polygon &poly)
 
static Geom_Number brute_convex_distance_squared (const Polygon &p, const Polygon &q, Point &out_p, Point &out_q)
 
 TEST_F (GeomAlgorithmsTest, ConvexPolygonDistanceGJKSeparatedSquares)
 
 TEST_F (GeomAlgorithmsTest, ConvexPolygonDistanceGJKOverlapping)
 
 TEST_F (GeomAlgorithmsTest, ConvexPolygonDistanceGJKTouchingEdge)
 
 TEST_F (GeomAlgorithmsTest, ConvexPolygonDistanceGJKSymmetry)
 
 TEST_F (GeomAlgorithmsTest, ConvexPolygonDistanceGJKInvalidInputThrows)
 
 TEST_F (GeomAlgorithmsTest, ConvexPolygonDistanceGJKMatchesBruteBaseline)
 
 TEST_F (GeomAlgorithmsTest, KDTreeInsertAndContains)
 
 TEST_F (GeomAlgorithmsTest, KDTreeNearest)
 
 TEST_F (GeomAlgorithmsTest, KDTreeNearestEmpty)
 
 TEST_F (GeomAlgorithmsTest, KDTreeBuildBalanced)
 
 TEST_F (GeomAlgorithmsTest, KDTreeRange)
 
 TEST_F (GeomAlgorithmsTest, KDTreeForEach)
 
 TEST_F (GeomAlgorithmsTest, KDTreeDebugSnapshotHasPartitions)
 
 TEST_F (GeomAlgorithmsTest, KDTreeDebugSnapshotCoversThePointsOutsideItsBounds)
 
static Geom_Number dist2 (const Point &a, const Point &b)
 
static Array< Point > sorted_hull_vertices (const Polygon &p)
 
 TEST_F (GeomAlgorithmsTest, DelaunayEmptyCircumcircleProperty)
 
 TEST_F (GeomAlgorithmsTest, DelaunayEmptyCircumcircleGridPoints)
 
 TEST_F (GeomAlgorithmsTest, VoronoiVerticesEquidistantToSites)
 
 TEST_F (GeomAlgorithmsTest, VoronoiBoundedEdgeSitesAreEquidistantToEndpoints)
 
 TEST_F (GeomAlgorithmsTest, RobustnessNearCollinearDelaunay)
 
 TEST_F (GeomAlgorithmsTest, RobustnessNearCollinearConvexHull)
 
 TEST_F (GeomAlgorithmsTest, RobustnessNearParallelSegments)
 
 TEST_F (GeomAlgorithmsTest, RobustnessNearParallelSegmentsConverging)
 
 TEST_F (GeomAlgorithmsTest, RobustnessExtremeCoordinates)
 
 TEST_F (GeomAlgorithmsTest, RobustnessVerySmallCoordinates)
 
 TEST_F (GeomAlgorithmsTest, RobustnessCocircularPoints)
 
 TEST_F (GeomAlgorithmsTest, DeterminismDelaunayPermutedInputs)
 
 TEST_F (GeomAlgorithmsTest, DeterminismConvexHullPermutedInputs)
 
 TEST_F (GeomAlgorithmsTest, DeterminismClosestPairPermutedInputs)
 
 TEST_F (GeomAlgorithmsTest, PerformanceConvexHull10KPoints)
 
 TEST_F (GeomAlgorithmsTest, PerformanceClosestPair5KPoints)
 
 TEST_F (GeomAlgorithmsTest, PerformanceDelaunay500Points)
 
 TEST_F (GeomAlgorithmsTest, PerformanceTriangulation100Vertices)
 
 TEST_F (GeomAlgorithmsTest, CrossAlgorithmConvexHullSimple)
 
 TEST_F (GeomAlgorithmsTest, CrossAlgorithmConvexHullLargerSet)
 
 TEST_F (GeomAlgorithmsTest, CrossAlgorithmConvexHullCollinearBoundary)
 
 TEST_F (GeomAlgorithmsTest, CrossAlgorithmConvexHullTrianglePoints)
 
 TEST_F (GeomAlgorithmsTest, DelaunayIncrementalBasicSquare)
 
 TEST_F (GeomAlgorithmsTest, DelaunayIncrementalEmptyCircumcircle)
 
 TEST_F (GeomAlgorithmsTest, DelaunayIncrementalMatchesBowyerWatson)
 
 TEST_F (GeomAlgorithmsTest, DelaunayIncrementalSingleTriangle)
 
 TEST_F (GeomAlgorithmsTest, DelaunayIncrementalCollinear)
 
 TEST_F (GeomAlgorithmsTest, DelaunayIncrementalDuplicates)
 
 TEST_F (GeomAlgorithmsTest, DelaunayIncrementalGrid)
 
 TEST_F (GeomAlgorithmsTest, VoronoiFortuneFourPoints)
 
 TEST_F (GeomAlgorithmsTest, VoronoiFortuneEquidistance)
 
 TEST_F (GeomAlgorithmsTest, VoronoiFortuneClippedCells)
 
 TEST_F (GeomAlgorithmsTest, VoronoiFortuneKeepsDualImplementationAvailable)
 
 TEST_F (GeomAlgorithmsTest, VoronoiFortuneGivesTheVerticesOfVoronoiDiagram)
 
 TEST_F (GeomAlgorithmsTest, ConvexDecompTriangle)
 
 TEST_F (GeomAlgorithmsTest, SweepLineCollinearOverlapping)
 
 TEST_F (GeomAlgorithmsTest, SweepLineManySegmentsAtOnePoint)
 
 TEST_F (GeomAlgorithmsTest, SweepLineVerticalSegments)
 
 TEST_F (GeomAlgorithmsTest, SweepLineStress10K)
 

Function Documentation

◆ brute_convex_distance_squared()

◆ dist2()

◆ first_vertex_of()

static Point first_vertex_of ( const Polygon &  poly)
static

◆ sorted_hull_vertices()

◆ TEST_F() [1/102]

◆ TEST_F() [2/102]

TEST_F ( GeomAlgorithmsTest  ,
AndrewMonotonicChainAllDuplicates   
)

◆ TEST_F() [3/102]

TEST_F ( GeomAlgorithmsTest  ,
AndrewMonotonicChainEmptyInput   
)

◆ TEST_F() [4/102]

TEST_F ( GeomAlgorithmsTest  ,
AndrewMonotonicChainSinglePoint   
)

◆ TEST_F() [5/102]

◆ TEST_F() [6/102]

TEST_F ( GeomAlgorithmsTest  ,
ClosestPairAllDuplicates   
)

◆ TEST_F() [7/102]

TEST_F ( GeomAlgorithmsTest  ,
ClosestPairEmptyInputThrows   
)

◆ TEST_F() [8/102]

TEST_F ( GeomAlgorithmsTest  ,
ClosestPairSinglePointThrows   
)

◆ TEST_F() [9/102]

TEST_F ( GeomAlgorithmsTest  ,
ConvexDecompTriangle   
)

◆ TEST_F() [10/102]

TEST_F ( GeomAlgorithmsTest  ,
ConvexPolygonDistanceGJKInvalidInputThrows   
)

◆ TEST_F() [11/102]

TEST_F ( GeomAlgorithmsTest  ,
ConvexPolygonDistanceGJKMatchesBruteBaseline   
)

◆ TEST_F() [12/102]

TEST_F ( GeomAlgorithmsTest  ,
ConvexPolygonDistanceGJKOverlapping   
)

◆ TEST_F() [13/102]

TEST_F ( GeomAlgorithmsTest  ,
ConvexPolygonDistanceGJKSeparatedSquares   
)

◆ TEST_F() [14/102]

TEST_F ( GeomAlgorithmsTest  ,
ConvexPolygonDistanceGJKSymmetry   
)

◆ TEST_F() [15/102]

TEST_F ( GeomAlgorithmsTest  ,
ConvexPolygonDistanceGJKTouchingEdge   
)

◆ TEST_F() [16/102]

TEST_F ( GeomAlgorithmsTest  ,
CrossAlgorithmConvexHullCollinearBoundary   
)

◆ TEST_F() [17/102]

TEST_F ( GeomAlgorithmsTest  ,
CrossAlgorithmConvexHullLargerSet   
)

◆ TEST_F() [18/102]

TEST_F ( GeomAlgorithmsTest  ,
CrossAlgorithmConvexHullSimple   
)

◆ TEST_F() [19/102]

TEST_F ( GeomAlgorithmsTest  ,
CrossAlgorithmConvexHullTrianglePoints   
)

◆ TEST_F() [20/102]

◆ TEST_F() [21/102]

TEST_F ( GeomAlgorithmsTest  ,
DelaunayEmptyCircumcircleGridPoints   
)

◆ TEST_F() [22/102]

TEST_F ( GeomAlgorithmsTest  ,
DelaunayEmptyCircumcircleProperty   
)

Definition at line 1285 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.

References dist2(), and r.

◆ TEST_F() [23/102]

TEST_F ( GeomAlgorithmsTest  ,
DelaunayIncrementalBasicSquare   
)

◆ TEST_F() [24/102]

TEST_F ( GeomAlgorithmsTest  ,
DelaunayIncrementalCollinear   
)

◆ TEST_F() [25/102]

TEST_F ( GeomAlgorithmsTest  ,
DelaunayIncrementalDuplicates   
)

◆ TEST_F() [26/102]

TEST_F ( GeomAlgorithmsTest  ,
DelaunayIncrementalEmptyCircumcircle   
)

◆ TEST_F() [27/102]

TEST_F ( GeomAlgorithmsTest  ,
DelaunayIncrementalGrid   
)

◆ TEST_F() [28/102]

TEST_F ( GeomAlgorithmsTest  ,
DelaunayIncrementalMatchesBowyerWatson   
)

◆ TEST_F() [29/102]

TEST_F ( GeomAlgorithmsTest  ,
DelaunayIncrementalSingleTriangle   
)

Definition at line 2118 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.

References r.

◆ TEST_F() [30/102]

TEST_F ( GeomAlgorithmsTest  ,
DeterminismClosestPairPermutedInputs   
)

◆ TEST_F() [31/102]

TEST_F ( GeomAlgorithmsTest  ,
DeterminismConvexHullPermutedInputs   
)

◆ TEST_F() [32/102]

TEST_F ( GeomAlgorithmsTest  ,
DeterminismDelaunayPermutedInputs   
)

◆ TEST_F() [33/102]

TEST_F ( GeomAlgorithmsTest  ,
GrahamScanAllDuplicates   
)

◆ TEST_F() [34/102]

TEST_F ( GeomAlgorithmsTest  ,
GrahamScanEmptyInput   
)

◆ TEST_F() [35/102]

TEST_F ( GeomAlgorithmsTest  ,
GrahamScanSinglePoint   
)

◆ TEST_F() [36/102]

◆ TEST_F() [37/102]

◆ TEST_F() [38/102]

◆ TEST_F() [39/102]

◆ TEST_F() [40/102]

◆ TEST_F() [41/102]

◆ TEST_F() [42/102]

◆ TEST_F() [43/102]

TEST_F ( GeomAlgorithmsTest  ,
KDTreeNearestEmpty   
)

◆ TEST_F() [44/102]

◆ TEST_F() [45/102]

◆ TEST_F() [46/102]

◆ TEST_F() [47/102]

TEST_F ( GeomAlgorithmsTest  ,
MinkowskiSumNonConvexThrows   
)

◆ TEST_F() [48/102]

TEST_F ( GeomAlgorithmsTest  ,
MinkowskiSumOpenPolygonThrows   
)

◆ TEST_F() [49/102]

◆ TEST_F() [50/102]

◆ TEST_F() [51/102]

TEST_F ( GeomAlgorithmsTest  ,
MonotoneTriangulateCountMatchesCuttingEars   
)

◆ TEST_F() [52/102]

TEST_F ( GeomAlgorithmsTest  ,
MonotoneTriangulateDegenerateThrows   
)

◆ TEST_F() [53/102]

◆ TEST_F() [54/102]

TEST_F ( GeomAlgorithmsTest  ,
MonotoneTriangulateOpenThrows   
)

◆ TEST_F() [55/102]

◆ TEST_F() [56/102]

◆ TEST_F() [57/102]

◆ TEST_F() [58/102]

◆ TEST_F() [59/102]

TEST_F ( GeomAlgorithmsTest  ,
PerformanceClosestPair5KPoints   
)

◆ TEST_F() [60/102]

◆ TEST_F() [61/102]

TEST_F ( GeomAlgorithmsTest  ,
PerformanceDelaunay500Points   
)

◆ TEST_F() [62/102]

◆ TEST_F() [63/102]

TEST_F ( GeomAlgorithmsTest  ,
PointInPolygonTwoVerticesThrows   
)

◆ TEST_F() [64/102]

◆ TEST_F() [65/102]

TEST_F ( GeomAlgorithmsTest  ,
RobustnessExtremeCoordinates   
)

◆ TEST_F() [66/102]

◆ TEST_F() [67/102]

◆ TEST_F() [68/102]

TEST_F ( GeomAlgorithmsTest  ,
RobustnessNearParallelSegments   
)

◆ TEST_F() [69/102]

◆ TEST_F() [70/102]

TEST_F ( GeomAlgorithmsTest  ,
RobustnessVerySmallCoordinates   
)

◆ TEST_F() [71/102]

◆ TEST_F() [72/102]

◆ TEST_F() [73/102]

TEST_F ( GeomAlgorithmsTest  ,
SegmentSegmentIntersectionCollinearTouchPoint   
)

◆ TEST_F() [74/102]

TEST_F ( GeomAlgorithmsTest  ,
SegmentSegmentIntersectionDegenerateDisjointPoints   
)

◆ TEST_F() [75/102]

TEST_F ( GeomAlgorithmsTest  ,
SegmentSegmentIntersectionDegenerateIdenticalPoints   
)

◆ TEST_F() [76/102]

TEST_F ( GeomAlgorithmsTest  ,
SegmentSegmentIntersectionDegeneratePointOnSegment   
)

◆ TEST_F() [77/102]

TEST_F ( GeomAlgorithmsTest  ,
SegmentSegmentIntersectionEndpointTouch   
)

◆ TEST_F() [78/102]

TEST_F ( GeomAlgorithmsTest  ,
SegmentSegmentIntersectionFreeFunction   
)

◆ TEST_F() [79/102]

TEST_F ( GeomAlgorithmsTest  ,
SegmentSegmentIntersectionNoIntersection   
)

◆ TEST_F() [80/102]

TEST_F ( GeomAlgorithmsTest  ,
SegmentSegmentIntersectionProperCross   
)

◆ TEST_F() [81/102]

TEST_F ( GeomAlgorithmsTest  ,
SegmentSegmentIntersectionVerticalOverlap   
)

◆ TEST_F() [82/102]

TEST_F ( GeomAlgorithmsTest  ,
SweepLineCollinearOverlapping   
)

◆ TEST_F() [83/102]

TEST_F ( GeomAlgorithmsTest  ,
SweepLineDegenerateSegmentThrows   
)

◆ TEST_F() [84/102]

TEST_F ( GeomAlgorithmsTest  ,
SweepLineDisjointSegments   
)

◆ TEST_F() [85/102]

TEST_F ( GeomAlgorithmsTest  ,
SweepLineFourSegmentsStar   
)

◆ TEST_F() [86/102]

TEST_F ( GeomAlgorithmsTest  ,
SweepLineManySegmentsAtOnePoint   
)

◆ TEST_F() [87/102]

◆ TEST_F() [88/102]

TEST_F ( GeomAlgorithmsTest  ,
SweepLineNoSegments   
)

◆ TEST_F() [89/102]

TEST_F ( GeomAlgorithmsTest  ,
SweepLineParallelNoIntersection   
)

◆ TEST_F() [90/102]

TEST_F ( GeomAlgorithmsTest  ,
SweepLineSimpleCross   
)

◆ TEST_F() [91/102]

TEST_F ( GeomAlgorithmsTest  ,
SweepLineSingleSegment   
)

◆ TEST_F() [92/102]

◆ TEST_F() [93/102]

TEST_F ( GeomAlgorithmsTest  ,
SweepLineTShapedIntersection   
)

◆ TEST_F() [94/102]

TEST_F ( GeomAlgorithmsTest  ,
SweepLineVerticalSegments   
)

◆ TEST_F() [95/102]

TEST_F ( GeomAlgorithmsTest  ,
TriangulateTwoVerticesThrows   
)

◆ TEST_F() [96/102]

TEST_F ( GeomAlgorithmsTest  ,
VoronoiBoundedEdgeSitesAreEquidistantToEndpoints   
)

Definition at line 1383 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.

References dist2(), and r.

◆ TEST_F() [97/102]

◆ TEST_F() [98/102]

TEST_F ( GeomAlgorithmsTest  ,
VoronoiFortuneEquidistance   
)

◆ TEST_F() [99/102]

TEST_F ( GeomAlgorithmsTest  ,
VoronoiFortuneFourPoints   
)

Definition at line 2199 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.

References r.

◆ TEST_F() [100/102]

TEST_F ( GeomAlgorithmsTest  ,
VoronoiFortuneGivesTheVerticesOfVoronoiDiagram   
)

◆ TEST_F() [101/102]

TEST_F ( GeomAlgorithmsTest  ,
VoronoiFortuneKeepsDualImplementationAvailable   
)

◆ TEST_F() [102/102]

TEST_F ( GeomAlgorithmsTest  ,
VoronoiVerticesEquidistantToSites   
)