|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
#include "geom_algorithms_test_common.h"#include <algorithm>#include <random>#include <cmath>#include <utility>#include <vector>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) | |
|
static |
Definition at line 841 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::PointInPolygonWinding::contains(), Aleph::GeomPolygonUtils::extract_vertices(), first_vertex_of(), Aleph::Polygon::Segment_Iterator::has_curr(), Aleph::Segment::intersects_with(), Aleph::Segment::project(), and Aleph::Array< T >::size().
Referenced by TEST_F().
|
static |
Definition at line 834 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Dlink::Iterator::has_curr().
Referenced by brute_convex_distance_squared().
Definition at line 1258 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append(), Aleph::Point::get_x(), Aleph::Point::get_y(), Aleph::Dlink::Iterator::has_curr(), and Aleph::quicksort_op().
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| TEST_F | ( | GeomAlgorithmsTest | , |
| AllHullAlgorithmsAgreeOnRandomInput | |||
| ) |
Definition at line 191 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), Aleph::Dlink::Iterator::has_curr(), seed, Aleph::Polygon::size(), and y.
| TEST_F | ( | GeomAlgorithmsTest | , |
| AndrewMonotonicChainAllDuplicates | |||
| ) |
Definition at line 131 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and Aleph::Polygon::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| AndrewMonotonicChainEmptyInput | |||
| ) |
Definition at line 112 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| AndrewMonotonicChainSinglePoint | |||
| ) |
Definition at line 120 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and Aleph::Polygon::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| AndrewMonotonicChainTwoPoints | |||
| ) |
Definition at line 95 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), Aleph::Polygon::is_closed(), and Aleph::Polygon::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| ClosestPairAllDuplicates | |||
| ) |
Definition at line 28 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| ClosestPairEmptyInputThrows | |||
| ) |
Definition at line 11 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| ClosestPairSinglePointThrows | |||
| ) |
Definition at line 19 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| ConvexDecompTriangle | |||
| ) |
Definition at line 2316 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), and Aleph::Polygon::close().
| TEST_F | ( | GeomAlgorithmsTest | , |
| ConvexPolygonDistanceGJKInvalidInputThrows | |||
| ) |
Definition at line 1002 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), and Aleph::Polygon::close().
| TEST_F | ( | GeomAlgorithmsTest | , |
| ConvexPolygonDistanceGJKMatchesBruteBaseline | |||
| ) |
Definition at line 1031 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), brute_convex_distance_squared(), r, seed, Aleph::Polygon::size(), and y.
| TEST_F | ( | GeomAlgorithmsTest | , |
| ConvexPolygonDistanceGJKOverlapping | |||
| ) |
Definition at line 931 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| ConvexPolygonDistanceGJKSeparatedSquares | |||
| ) |
Definition at line 905 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| ConvexPolygonDistanceGJKSymmetry | |||
| ) |
Definition at line 978 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), and Aleph::Polygon::close().
| TEST_F | ( | GeomAlgorithmsTest | , |
| ConvexPolygonDistanceGJKTouchingEdge | |||
| ) |
Definition at line 955 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| CrossAlgorithmConvexHullCollinearBoundary | |||
| ) |
Definition at line 1961 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and sorted_hull_vertices().
| TEST_F | ( | GeomAlgorithmsTest | , |
| CrossAlgorithmConvexHullLargerSet | |||
| ) |
Definition at line 1915 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), sorted_hull_vertices(), and y.
| TEST_F | ( | GeomAlgorithmsTest | , |
| CrossAlgorithmConvexHullSimple | |||
| ) |
Definition at line 1861 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and sorted_hull_vertices().
| TEST_F | ( | GeomAlgorithmsTest | , |
| CrossAlgorithmConvexHullTrianglePoints | |||
| ) |
Definition at line 2004 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and sorted_hull_vertices().
| TEST_F | ( | GeomAlgorithmsTest | , |
| DelaunayAsTrianglesProducesValidTriangles | |||
| ) |
Definition at line 246 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DelaunayTriangulationBowyerWatson::as_triangles(), Aleph::count(), Aleph::HTList::Iterator::has_curr(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| DelaunayEmptyCircumcircleGridPoints | |||
| ) |
Definition at line 1321 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), dist2(), r, and y.
| TEST_F | ( | GeomAlgorithmsTest | , |
| DelaunayEmptyCircumcircleProperty | |||
| ) |
Definition at line 1285 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| DelaunayIncrementalBasicSquare | |||
| ) |
Definition at line 2046 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| DelaunayIncrementalCollinear | |||
| ) |
Definition at line 2127 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| DelaunayIncrementalDuplicates | |||
| ) |
Definition at line 2142 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| DelaunayIncrementalEmptyCircumcircle | |||
| ) |
Definition at line 2062 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), dist2(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| DelaunayIncrementalGrid | |||
| ) |
Definition at line 2158 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), dist2(), r, and y.
| TEST_F | ( | GeomAlgorithmsTest | , |
| DelaunayIncrementalMatchesBowyerWatson | |||
| ) |
Definition at line 2095 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| DelaunayIncrementalSingleTriangle | |||
| ) |
Definition at line 2118 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| DeterminismClosestPairPermutedInputs | |||
| ) |
Definition at line 1736 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| DeterminismConvexHullPermutedInputs | |||
| ) |
Definition at line 1707 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and sorted_hull_vertices().
| TEST_F | ( | GeomAlgorithmsTest | , |
| DeterminismDelaunayPermutedInputs | |||
| ) |
Definition at line 1652 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| GrahamScanAllDuplicates | |||
| ) |
Definition at line 176 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and Aleph::Polygon::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| GrahamScanEmptyInput | |||
| ) |
Definition at line 144 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| GrahamScanSinglePoint | |||
| ) |
Definition at line 152 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and Aleph::Polygon::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| GrahamScanTwoPoints | |||
| ) |
Definition at line 162 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), Aleph::Polygon::is_closed(), and Aleph::Polygon::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| KDTreeBuildBalanced | |||
| ) |
Definition at line 1121 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append(), Aleph::KDTreePointSearch::build(), and y.
| TEST_F | ( | GeomAlgorithmsTest | , |
| KDTreeDebugSnapshotCoversThePointsOutsideItsBounds | |||
| ) |
Definition at line 1195 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append(), Aleph::KDTreePointSearch::build(), check(), Aleph::Rectangle::get_xmax(), Aleph::Rectangle::get_xmin(), Aleph::Rectangle::get_ymax(), Aleph::Rectangle::get_ymin(), and Aleph::KDTreePointSearch::insert().
| TEST_F | ( | GeomAlgorithmsTest | , |
| KDTreeDebugSnapshotHasPartitions | |||
| ) |
Definition at line 1172 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::KDTreePointSearch::debug_snapshot(), Aleph::KDTreePointSearch::insert(), and Aleph::KDTreePointSearch::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| KDTreeForEach | |||
| ) |
Definition at line 1160 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::KDTreePointSearch::for_each(), and Aleph::KDTreePointSearch::insert().
| TEST_F | ( | GeomAlgorithmsTest | , |
| KDTreeInsertAndContains | |||
| ) |
Definition at line 1080 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::KDTreePointSearch::contains(), Aleph::KDTreePointSearch::insert(), Aleph::KDTreePointSearch::is_empty(), and Aleph::KDTreePointSearch::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| KDTreeNearest | |||
| ) |
Definition at line 1096 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::KDTreePointSearch::insert(), and Aleph::KDTreePointSearch::nearest().
| TEST_F | ( | GeomAlgorithmsTest | , |
| KDTreeNearestEmpty | |||
| ) |
Definition at line 1113 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::KDTreePointSearch::nearest().
| TEST_F | ( | GeomAlgorithmsTest | , |
| KDTreeRange | |||
| ) |
Definition at line 1142 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::count(), Aleph::HTList::Iterator::has_curr(), Aleph::KDTreePointSearch::insert(), out, and Aleph::KDTreePointSearch::range().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MinkowskiSumCWInputsNormalized | |||
| ) |
Definition at line 731 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), Aleph::Polygon::is_closed(), and Aleph::Polygon::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MinkowskiSumIsConvex | |||
| ) |
Definition at line 794 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Array< T >::append(), Aleph::area_of_parallelogram(), Aleph::Polygon::close(), Aleph::Dlink::Iterator::has_curr(), Aleph::Polygon::is_closed(), Aleph::Polygon::size(), and Aleph::Array< T >::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MinkowskiSumNonConvexThrows | |||
| ) |
Definition at line 753 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), and Aleph::Polygon::close().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MinkowskiSumOpenPolygonThrows | |||
| ) |
Definition at line 776 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), and Aleph::Polygon::close().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MinkowskiSumSquareAndTriangle | |||
| ) |
Definition at line 701 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), Aleph::Polygon::is_closed(), and Aleph::Polygon::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MinkowskiSumTwoSquares | |||
| ) |
Definition at line 679 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), Aleph::Polygon::is_closed(), and Aleph::Polygon::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MonotoneTriangulateCountMatchesCuttingEars | |||
| ) |
Definition at line 646 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), and Aleph::HTList::Iterator::has_curr().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MonotoneTriangulateDegenerateThrows | |||
| ) |
Definition at line 628 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), and Aleph::Polygon::close().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MonotoneTriangulateHexagon | |||
| ) |
Definition at line 595 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), Aleph::count(), and Aleph::HTList::Iterator::has_curr().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MonotoneTriangulateOpenThrows | |||
| ) |
Definition at line 616 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MonotoneTriangulatePentagon | |||
| ) |
Definition at line 575 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), Aleph::count(), and Aleph::HTList::Iterator::has_curr().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MonotoneTriangulateSquare | |||
| ) |
Definition at line 537 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), Aleph::count(), and Aleph::HTList::Iterator::has_curr().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MonotoneTriangulateSquareCW | |||
| ) |
Definition at line 556 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), Aleph::count(), and Aleph::HTList::Iterator::has_curr().
| TEST_F | ( | GeomAlgorithmsTest | , |
| MonotoneTriangulateTriangle | |||
| ) |
Definition at line 519 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), Aleph::count(), and Aleph::HTList::Iterator::has_curr().
| TEST_F | ( | GeomAlgorithmsTest | , |
| PerformanceClosestPair5KPoints | |||
| ) |
Definition at line 1783 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), r, and y.
| TEST_F | ( | GeomAlgorithmsTest | , |
| PerformanceConvexHull10KPoints | |||
| ) |
Definition at line 1762 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), Aleph::Polygon::is_closed(), Aleph::Polygon::size(), and y.
| TEST_F | ( | GeomAlgorithmsTest | , |
| PerformanceDelaunay500Points | |||
| ) |
Definition at line 1798 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), dist2(), r, and y.
| TEST_F | ( | GeomAlgorithmsTest | , |
| PerformanceTriangulation100Vertices | |||
| ) |
Definition at line 1829 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::Polygon::close(), Aleph::count(), Aleph::HTList::Iterator::has_curr(), and Aleph::Polygon::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| PointInPolygonTwoVerticesThrows | |||
| ) |
Definition at line 78 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), and Aleph::Polygon::close().
| TEST_F | ( | GeomAlgorithmsTest | , |
| RobustnessCocircularPoints | |||
| ) |
Definition at line 1603 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append(), Aleph::DynList< T >::append(), Aleph::TestVisual::emit_case_svg(), Aleph::HTList::Iterator::has_curr(), Aleph::TestVisual::SvgScene::points, r, and Aleph::TestVisual::SvgScene::segments.
| TEST_F | ( | GeomAlgorithmsTest | , |
| RobustnessExtremeCoordinates | |||
| ) |
Definition at line 1551 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), dist2(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| RobustnessNearCollinearConvexHull | |||
| ) |
Definition at line 1468 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::TestVisual::add_polygon_vertices(), Aleph::Array< T >::append(), Aleph::DynList< T >::append(), Aleph::TestVisual::emit_case_svg(), Aleph::HTList::Iterator::has_curr(), Aleph::Polygon::is_closed(), Aleph::TestVisual::SvgScene::points, Aleph::TestVisual::SvgScene::polygons, and Aleph::Polygon::size().
| TEST_F | ( | GeomAlgorithmsTest | , |
| RobustnessNearCollinearDelaunay | |||
| ) |
Definition at line 1416 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append(), Aleph::DynList< T >::append(), dist2(), Aleph::TestVisual::emit_case_svg(), Aleph::HTList::Iterator::has_curr(), Aleph::TestVisual::SvgScene::points, r, and Aleph::TestVisual::SvgScene::segments.
| TEST_F | ( | GeomAlgorithmsTest | , |
| RobustnessNearParallelSegments | |||
| ) |
Definition at line 1505 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| RobustnessNearParallelSegmentsConverging | |||
| ) |
| TEST_F | ( | GeomAlgorithmsTest | , |
| RobustnessVerySmallCoordinates | |||
| ) |
Definition at line 1584 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| RotatingCalipersOpenSingleVertexThrows | |||
| ) |
Definition at line 64 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::RotatingCalipersConvexPolygon::diameter(), and Aleph::RotatingCalipersConvexPolygon::minimum_width().
| TEST_F | ( | GeomAlgorithmsTest | , |
| SegmentSegmentIntersectionCollinearOverlap | |||
| ) |
Definition at line 302 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append(), Aleph::TestVisual::emit_case_svg(), Aleph::TestVisual::SvgScene::highlighted_points, and Aleph::TestVisual::SvgScene::segments.
| TEST_F | ( | GeomAlgorithmsTest | , |
| SegmentSegmentIntersectionCollinearTouchPoint | |||
| ) |
Definition at line 369 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| SegmentSegmentIntersectionDegenerateDisjointPoints | |||
| ) |
Definition at line 358 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| SegmentSegmentIntersectionDegenerateIdenticalPoints | |||
| ) |
Definition at line 347 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| SegmentSegmentIntersectionDegeneratePointOnSegment | |||
| ) |
Definition at line 336 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| SegmentSegmentIntersectionEndpointTouch | |||
| ) |
Definition at line 291 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| SegmentSegmentIntersectionFreeFunction | |||
| ) |
Definition at line 380 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::segment_segment_intersection().
| TEST_F | ( | GeomAlgorithmsTest | , |
| SegmentSegmentIntersectionNoIntersection | |||
| ) |
Definition at line 268 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| SegmentSegmentIntersectionProperCross | |||
| ) |
Definition at line 279 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| SegmentSegmentIntersectionVerticalOverlap | |||
| ) |
Definition at line 324 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineCollinearOverlapping | |||
| ) |
Definition at line 2334 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineDegenerateSegmentThrows | |||
| ) |
Definition at line 488 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineDisjointSegments | |||
| ) |
Definition at line 465 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineFourSegmentsStar | |||
| ) |
Definition at line 498 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineManySegmentsAtOnePoint | |||
| ) |
Definition at line 2351 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append(), cos(), __gmp_expr< mpq_t, mpq_t >::get_d(), N, and sin().
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineMultipleIntersections | |||
| ) |
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineNoSegments | |||
| ) |
Definition at line 392 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineParallelNoIntersection | |||
| ) |
Definition at line 411 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineSimpleCross | |||
| ) |
Definition at line 422 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineSingleSegment | |||
| ) |
Definition at line 401 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineStress10K | |||
| ) |
Definition at line 2395 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::and, Aleph::Array< T >::append(), check(), Aleph::Segment::intersects_with(), N, rng, and y.
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineTShapedIntersection | |||
| ) |
Definition at line 476 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| SweepLineVerticalSegments | |||
| ) |
Definition at line 2375 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Array< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| TriangulateTwoVerticesThrows | |||
| ) |
Definition at line 47 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), and Aleph::Polygon::close().
| TEST_F | ( | GeomAlgorithmsTest | , |
| VoronoiBoundedEdgeSitesAreEquidistantToEndpoints | |||
| ) |
Definition at line 1383 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
| TEST_F | ( | GeomAlgorithmsTest | , |
| VoronoiFortuneClippedCells | |||
| ) |
Definition at line 2234 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::Polygon::add_vertex(), Aleph::DynList< T >::append(), Aleph::VoronoiDiagramFortune::clipped_cells(), and Aleph::Polygon::close().
| TEST_F | ( | GeomAlgorithmsTest | , |
| VoronoiFortuneEquidistance | |||
| ) |
Definition at line 2210 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), dist2(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| VoronoiFortuneFourPoints | |||
| ) |
Definition at line 2199 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| VoronoiFortuneGivesTheVerticesOfVoronoiDiagram | |||
| ) |
Definition at line 2278 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append(), and r.
| TEST_F | ( | GeomAlgorithmsTest | , |
| VoronoiFortuneKeepsDualImplementationAvailable | |||
| ) |
Definition at line 2257 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References Aleph::DynList< T >::append().
| TEST_F | ( | GeomAlgorithmsTest | , |
| VoronoiVerticesEquidistantToSites | |||
| ) |
Definition at line 1355 of file geom_algorithms_test_edgecases_sweepline_minkowski_kdtree.cc.
References dist2().