Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
robust_predicates_test.cc File Reference

Tests for robust geometry predicates in point.H. More...

#include <gtest/gtest.h>
#include <point.H>
#include "geometry_visual_golden.h"
Include dependency graph for robust_predicates_test.cc:

Go to the source code of this file.

Functions

 TEST (Orientation, CCW)
 
 TEST (Orientation, CW)
 
 TEST (Orientation, Collinear)
 
 TEST (Orientation, DegenerateCoincident)
 
 TEST (InCircle, InsideCCW)
 
 TEST (InCircle, InsideCW)
 
 TEST (InCircle, OnCircle)
 
 TEST (InCircle, Outside)
 
 TEST (InCircle, DegenerateTriangleCollinear)
 
 TEST (InCircleDeterminant, SignDependsOnTriangleOrientation)
 
 TEST (OnSegment, Endpoint)
 
 TEST (OnSegment, Interior)
 
 TEST (OnSegment, Outside)
 
 TEST (OnSegment, NotCollinear)
 
 TEST (SegmentsIntersect, ProperCross)
 
 TEST (SegmentsIntersect, TShaped)
 
 TEST (SegmentsIntersect, SharedEndpoint)
 
 TEST (SegmentsIntersect, CollinearOverlap)
 
 TEST (SegmentsIntersect, CollinearDisjoint)
 
 TEST (SegmentsIntersect, Parallel)
 
 TEST (SegmentsIntersect, Disjoint)
 
 TEST (SegmentsIntersect, FourPointOverload)
 
 TEST (IntersectionPoint, SimpleXCross)
 
 TEST (IntersectionPoint, ExactRational)
 
 TEST (IntersectionPoint, ExactRationalNonTrivial)
 
 TEST (IntersectionPoint, VerticalSegment)
 
 TEST (IntersectionPoint, HorizontalSegment)
 
 TEST (IntersectionPoint, ParallelThrows)
 
 TEST (IntersectionPoint, DisjointNonParallelThrows)
 
 TEST (IntersectionPoint, CollinearOverlapThrows)
 
 TEST (IntersectionPoint, CollinearTouchingAtEndpointReturnsUniquePoint)
 
 TEST (IntersectionPoint, DegeneratePointOnSegmentReturnsThatPoint)
 
 TEST (IntersectionPoint, DegenerateIdenticalPointsReturnThatPoint)
 
 TEST (IsParallel, ExactParallel)
 
 TEST (IsParallel, AntiParallel)
 
 TEST (IsParallel, NotParallel)
 
 TEST (IsParallel, VerticalPair)
 
 TEST (IsParallel, HorizontalPair)
 
 TEST (TriangleArea, Known)
 
 TEST (TriangleArea, Degenerate)
 
 TEST (TriangleArea, ExactRational)
 

Detailed Description

Tests for robust geometry predicates in point.H.

Tests orientation(), in_circle(), on_segment(), segments_intersect(), segment_intersection_point(), is_parallel_with(), and area_of_triangle().

Definition in file robust_predicates_test.cc.

Function Documentation

◆ TEST() [1/41]

TEST ( InCircle  ,
DegenerateTriangleCollinear   
)

◆ TEST() [2/41]

TEST ( InCircle  ,
InsideCCW   
)

◆ TEST() [3/41]

TEST ( InCircle  ,
InsideCW   
)

◆ TEST() [4/41]

◆ TEST() [5/41]

TEST ( InCircle  ,
Outside   
)

◆ TEST() [6/41]

TEST ( InCircleDeterminant  ,
SignDependsOnTriangleOrientation   
)

◆ TEST() [7/41]

TEST ( IntersectionPoint  ,
CollinearOverlapThrows   
)

◆ TEST() [8/41]

◆ TEST() [9/41]

TEST ( IntersectionPoint  ,
DegenerateIdenticalPointsReturnThatPoint   
)

◆ TEST() [10/41]

TEST ( IntersectionPoint  ,
DegeneratePointOnSegmentReturnsThatPoint   
)

◆ TEST() [11/41]

TEST ( IntersectionPoint  ,
DisjointNonParallelThrows   
)

◆ TEST() [12/41]

TEST ( IntersectionPoint  ,
ExactRational   
)

◆ TEST() [13/41]

◆ TEST() [14/41]

TEST ( IntersectionPoint  ,
HorizontalSegment   
)

◆ TEST() [15/41]

TEST ( IntersectionPoint  ,
ParallelThrows   
)

◆ TEST() [16/41]

TEST ( IntersectionPoint  ,
SimpleXCross   
)

◆ TEST() [17/41]

TEST ( IntersectionPoint  ,
VerticalSegment   
)

◆ TEST() [18/41]

TEST ( IsParallel  ,
AntiParallel   
)

◆ TEST() [19/41]

TEST ( IsParallel  ,
ExactParallel   
)

◆ TEST() [20/41]

TEST ( IsParallel  ,
HorizontalPair   
)

◆ TEST() [21/41]

TEST ( IsParallel  ,
NotParallel   
)

◆ TEST() [22/41]

TEST ( IsParallel  ,
VerticalPair   
)

◆ TEST() [23/41]

TEST ( OnSegment  ,
Endpoint   
)

◆ TEST() [24/41]

TEST ( OnSegment  ,
Interior   
)

◆ TEST() [25/41]

TEST ( OnSegment  ,
NotCollinear   
)

◆ TEST() [26/41]

TEST ( OnSegment  ,
Outside   
)

◆ TEST() [27/41]

TEST ( Orientation  ,
CCW   
)

◆ TEST() [28/41]

TEST ( Orientation  ,
Collinear   
)

◆ TEST() [29/41]

TEST ( Orientation  ,
CW   
)

◆ TEST() [30/41]

TEST ( Orientation  ,
DegenerateCoincident   
)

◆ TEST() [31/41]

TEST ( SegmentsIntersect  ,
CollinearDisjoint   
)

◆ TEST() [32/41]

◆ TEST() [33/41]

TEST ( SegmentsIntersect  ,
Disjoint   
)

◆ TEST() [34/41]

TEST ( SegmentsIntersect  ,
FourPointOverload   
)

◆ TEST() [35/41]

TEST ( SegmentsIntersect  ,
Parallel   
)

◆ TEST() [36/41]

TEST ( SegmentsIntersect  ,
ProperCross   
)

◆ TEST() [37/41]

TEST ( SegmentsIntersect  ,
SharedEndpoint   
)

◆ TEST() [38/41]

TEST ( SegmentsIntersect  ,
TShaped   
)

◆ TEST() [39/41]

TEST ( TriangleArea  ,
Degenerate   
)

◆ TEST() [40/41]

TEST ( TriangleArea  ,
ExactRational   
)

◆ TEST() [41/41]

TEST ( TriangleArea  ,
Known   
)