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

Tests for Point. More...

#include <gtest/gtest.h>
#include <cmath>
#include <unordered_set>
#include <point.H>
Include dependency graph for point_test.cc:

Go to the source code of this file.

Classes

class  PointTest
 
class  PolarPointTest
 
class  SegmentTest
 
class  TriangleTest
 
class  RectangleTest
 
class  EllipseTest
 

Functions

bool approx_equal (const Geom_Number &a, const Geom_Number &b, double tol=EPSILON)
 
bool approx_equal (double a, double b, double tol=EPSILON)
 
 TEST_F (PointTest, DefaultConstruction)
 
 TEST_F (PointTest, ParameterizedConstruction)
 
 TEST_F (PointTest, Equality)
 
 TEST_F (PointTest, Addition)
 
 TEST_F (PointTest, AdditionAssignment)
 
 TEST_F (PointTest, Subtraction)
 
 TEST_F (PointTest, SubtractionAssignment)
 
 TEST_F (PointTest, ToString)
 
 TEST_F (PointTest, StringCastOperator)
 
 TEST_F (PointTest, DistanceWith)
 
 TEST_F (PointTest, DistanceSquaredTo)
 
 TEST_F (PointTest, IsColinearWithPoints)
 
 TEST_F (PointTest, IsToLeftFrom)
 
 TEST_F (PointTest, IsToRightFrom)
 
 TEST_F (PointTest, IsToLeftOnFrom)
 
 TEST_F (PointTest, IsClockwiseWith)
 
 TEST_F (PointTest, IsBetween)
 
 TEST_F (PointTest, NearestPoint)
 
 TEST_F (PointTest, HighestLowestLeftmostRightmost)
 
 TEST_F (PointTest, NormNormalizeRotateAndLerp)
 
 TEST_F (PointTest, LexicographicOrder)
 
 TEST_F (PointTest, HashSupport)
 
 TEST_F (PolarPointTest, ConversionFromCartesian)
 
 TEST_F (PolarPointTest, ConversionToCartesian)
 
 TEST_F (PolarPointTest, RoundTripConversion)
 
 TEST_F (PolarPointTest, QuadrantFirst)
 
 TEST_F (PolarPointTest, QuadrantSecond)
 
 TEST_F (PolarPointTest, QuadrantThird)
 
 TEST_F (PolarPointTest, QuadrantFourth)
 
 TEST_F (PolarPointTest, ToString)
 
 TEST_F (PolarPointTest, DefaultConstruction)
 
 TEST_F (SegmentTest, DefaultConstruction)
 
 TEST_F (SegmentTest, TwoPointConstruction)
 
 TEST_F (SegmentTest, Equality)
 
 TEST_F (SegmentTest, Size)
 
 TEST_F (SegmentTest, Slope)
 
 TEST_F (SegmentTest, MidPoint)
 
 TEST_F (SegmentTest, HighestPoint)
 
 TEST_F (SegmentTest, LowestPoint)
 
 TEST_F (SegmentTest, LeftmostPoint)
 
 TEST_F (SegmentTest, RightmostPoint)
 
 TEST_F (SegmentTest, ContainsToPoint)
 
 TEST_F (SegmentTest, IsColinearWith)
 
 TEST_F (SegmentTest, IsParallelWith)
 
 TEST_F (SegmentTest, IntersectsWith)
 
 TEST_F (SegmentTest, IntersectsProperlyWith)
 
 TEST_F (SegmentTest, IntersectionWith)
 
 TEST_F (SegmentTest, IntersectionWithParallelThrows)
 
 TEST_F (SegmentTest, SenseEast)
 
 TEST_F (SegmentTest, SenseWest)
 
 TEST_F (SegmentTest, SenseNorth)
 
 TEST_F (SegmentTest, SenseSouth)
 
 TEST_F (SegmentTest, SenseNorthEast)
 
 TEST_F (SegmentTest, SenseSouthWest)
 
 TEST_F (SegmentTest, SenseNorthWest)
 
 TEST_F (SegmentTest, SenseSouthEast)
 
 TEST_F (SegmentTest, ToString)
 
 TEST_F (SegmentTest, Rotate)
 
 TEST_F (SegmentTest, GetPerpendicular)
 
 TEST_F (SegmentTest, CounterclockwiseAngle)
 
 TEST_F (TriangleTest, ThreePointConstruction)
 
 TEST_F (TriangleTest, ConstructionFromPointAndSegment)
 
 TEST_F (TriangleTest, ConstructionFromSegmentAndPoint)
 
 TEST_F (TriangleTest, CollinearPointsThrow)
 
 TEST_F (TriangleTest, Area)
 
 TEST_F (TriangleTest, ContainsTo)
 
 TEST_F (TriangleTest, HighestPoint)
 
 TEST_F (TriangleTest, LowestPoint)
 
 TEST_F (TriangleTest, LeftmostPoint)
 
 TEST_F (TriangleTest, RightmostPoint)
 
 TEST_F (TriangleTest, IsClockwise)
 
 TEST_F (RectangleTest, DefaultConstruction)
 
 TEST_F (RectangleTest, ParameterizedConstruction)
 
 TEST_F (RectangleTest, InvalidRectangleThrows)
 
 TEST_F (RectangleTest, Width)
 
 TEST_F (RectangleTest, Height)
 
 TEST_F (RectangleTest, Contains)
 
 TEST_F (RectangleTest, Intersects)
 
 TEST_F (RectangleTest, DistanceSquaredTo)
 
 TEST_F (RectangleTest, DistanceTo)
 
 TEST_F (RectangleTest, SetRect)
 
 TEST_F (RectangleTest, SetRectInvalidThrows)
 
 TEST_F (EllipseTest, DefaultConstruction)
 
 TEST_F (EllipseTest, ParameterizedConstruction)
 
 TEST_F (EllipseTest, CopyConstruction)
 
 TEST_F (EllipseTest, HighestPoint)
 
 TEST_F (EllipseTest, LowestPoint)
 
 TEST_F (EllipseTest, LeftmostPoint)
 
 TEST_F (EllipseTest, RightmostPoint)
 
 TEST_F (EllipseTest, ContainsToCenter)
 
 TEST_F (EllipseTest, ContainsToInside)
 
 TEST_F (EllipseTest, ContainsToOutside)
 
 TEST_F (EllipseTest, ContainsToOnBorder)
 
 TEST_F (EllipseTest, IntersectsWithPointOnBorder)
 
 TEST_F (EllipseTest, IsClockwise)
 
 TEST_F (EllipseTest, PointIsInsideEllipse)
 
 TEST_F (EllipseTest, VerticalSegmentOutsideYRangeDoesNotIntersect)
 
 TEST_F (EllipseTest, SegmentThroughCenterIntersectionStable)
 
 TEST_F (EllipseTest, ExtraEllipseApis)
 
 TEST (HelperFunctionTest, AreaOfParallelogram)
 
 TEST (HelperFunctionTest, AreaOfParallelogramNegative)
 
 TEST (HelperFunctionTest, EuclideanDistance)
 
 TEST (HelperFunctionTest, EuclideanDistanceZero)
 
 TEST (HelperFunctionTest, Arctan)
 
 TEST (HelperFunctionTest, Arctan2)
 
 TEST (HelperFunctionTest, Sinus)
 
 TEST (HelperFunctionTest, Cosinus)
 
 TEST (HelperFunctionTest, SquareRoot)
 
 TEST (HelperFunctionTest, GeomNumberToDouble)
 
 TEST (TextTest, AproximateStringSizeSimple)
 
 TEST (TextTest, AproximateStringSizeWithLatex)
 
 TEST (TextTest, AproximateStringSizeWithDollarSigns)
 
 TEST (TextTest, AproximateStringSizeWithBraces)
 
 TEST (TextTest, TextConstruction)
 
 TEST (TextTest, TextDefaultConstruction)
 
 TEST (TextTest, TextBoundingPoints)
 
 TEST (GeomObjectTest, VirtualDestructor)
 
 TEST (EdgeCaseTest, VerticalSegmentSlope)
 
 TEST (EdgeCaseTest, VerticalSegmentSlopeNegative)
 
 TEST (EdgeCaseTest, SegmentConstructionWithSlopeAndLength)
 
 TEST (EdgeCaseTest, ParallelSegmentOffset)
 
 TEST (EdgeCaseTest, SegmentEnlargeSrc)
 
 TEST (EdgeCaseTest, SegmentEnlargeTgt)
 
 TEST (EdgeCaseTest, ZeroAreaTriangleFails)
 
 TEST (EdgeCaseTest, PointOnSegment)
 
 TEST (EdgeCaseTest, MidPerpendicular)
 
 TEST (EdgeCaseTest, MidPerpendicularZeroLengthThrows)
 
 TEST (SegmentTriangleTest, SegmentIntersectsTriangle)
 
 TEST (SegmentTriangleTest, SegmentDoesNotIntersectTriangle)
 
int main (int argc, char **argv)
 

Variables

constexpr double EPSILON = 1e-9
 

Detailed Description

Tests for Point.

Comprehensive test suite for point.H geometry module.

Tests cover:

  • Point class: construction, arithmetic, comparisons, geometric predicates
  • Polar_Point class: conversion, quadrants
  • Segment class: construction, intersections, geometric operations
  • Triangle class: construction, containment, area
  • Rectangle class: construction, containment, distance
  • Ellipse class: construction, containment, intersections
  • Helper functions: area_of_parallelogram, pitag, trig wrappers

Definition in file point_test.cc.

Function Documentation

◆ approx_equal() [1/2]

bool approx_equal ( const Geom_Number a,
const Geom_Number b,
double  tol = EPSILON 
)

◆ approx_equal() [2/2]

bool approx_equal ( double  a,
double  b,
double  tol = EPSILON 
)

Definition at line 69 of file point_test.cc.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 1173 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [1/30]

TEST ( EdgeCaseTest  ,
MidPerpendicular   
)

◆ TEST() [2/30]

TEST ( EdgeCaseTest  ,
MidPerpendicularZeroLengthThrows   
)

Definition at line 1143 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [3/30]

TEST ( EdgeCaseTest  ,
ParallelSegmentOffset   
)

Definition at line 1084 of file point_test.cc.

References approx_equal(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST() [4/30]

TEST ( EdgeCaseTest  ,
PointOnSegment   
)

◆ TEST() [5/30]

TEST ( EdgeCaseTest  ,
SegmentConstructionWithSlopeAndLength   
)

Definition at line 1073 of file point_test.cc.

References approx_equal(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST() [6/30]

TEST ( EdgeCaseTest  ,
SegmentEnlargeSrc   
)

Definition at line 1095 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [7/30]

TEST ( EdgeCaseTest  ,
SegmentEnlargeTgt   
)

Definition at line 1106 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [8/30]

TEST ( EdgeCaseTest  ,
VerticalSegmentSlope   
)

Definition at line 1059 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::vertical.

◆ TEST() [9/30]

TEST ( EdgeCaseTest  ,
VerticalSegmentSlopeNegative   
)

Definition at line 1066 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::vertical.

◆ TEST() [10/30]

TEST ( EdgeCaseTest  ,
ZeroAreaTriangleFails   
)

Definition at line 1117 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [11/30]

TEST ( GeomObjectTest  ,
VirtualDestructor   
)

Definition at line 1048 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [12/30]

TEST ( HelperFunctionTest  ,
Arctan   
)

◆ TEST() [13/30]

TEST ( HelperFunctionTest  ,
Arctan2   
)

◆ TEST() [14/30]

TEST ( HelperFunctionTest  ,
AreaOfParallelogram   
)

◆ TEST() [15/30]

TEST ( HelperFunctionTest  ,
AreaOfParallelogramNegative   
)

◆ TEST() [16/30]

TEST ( HelperFunctionTest  ,
Cosinus   
)

◆ TEST() [17/30]

TEST ( HelperFunctionTest  ,
EuclideanDistance   
)

◆ TEST() [18/30]

TEST ( HelperFunctionTest  ,
EuclideanDistanceZero   
)

◆ TEST() [19/30]

TEST ( HelperFunctionTest  ,
GeomNumberToDouble   
)

◆ TEST() [20/30]

TEST ( HelperFunctionTest  ,
Sinus   
)

◆ TEST() [21/30]

TEST ( HelperFunctionTest  ,
SquareRoot   
)

◆ TEST() [22/30]

TEST ( SegmentTriangleTest  ,
SegmentDoesNotIntersectTriangle   
)

Definition at line 1161 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [23/30]

TEST ( SegmentTriangleTest  ,
SegmentIntersectsTriangle   
)

Definition at line 1153 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [24/30]

TEST ( TextTest  ,
AproximateStringSizeSimple   
)

◆ TEST() [25/30]

TEST ( TextTest  ,
AproximateStringSizeWithBraces   
)

◆ TEST() [26/30]

TEST ( TextTest  ,
AproximateStringSizeWithDollarSigns   
)

◆ TEST() [27/30]

TEST ( TextTest  ,
AproximateStringSizeWithLatex   
)

◆ TEST() [28/30]

TEST ( TextTest  ,
TextBoundingPoints   
)

Definition at line 1033 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [29/30]

TEST ( TextTest  ,
TextConstruction   
)

Definition at line 1017 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST() [30/30]

TEST ( TextTest  ,
TextDefaultConstruction   
)

Definition at line 1027 of file point_test.cc.

◆ TEST_F() [1/99]

TEST_F ( EllipseTest  ,
ContainsToCenter   
)

Definition at line 844 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [2/99]

TEST_F ( EllipseTest  ,
ContainsToInside   
)

Definition at line 849 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [3/99]

TEST_F ( EllipseTest  ,
ContainsToOnBorder   
)

Definition at line 861 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [4/99]

TEST_F ( EllipseTest  ,
ContainsToOutside   
)

Definition at line 855 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [5/99]

TEST_F ( EllipseTest  ,
CopyConstruction   
)

Definition at line 808 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [6/99]

TEST_F ( EllipseTest  ,
DefaultConstruction   
)

Definition at line 795 of file point_test.cc.

◆ TEST_F() [7/99]

TEST_F ( EllipseTest  ,
ExtraEllipseApis   
)

◆ TEST_F() [8/99]

TEST_F ( EllipseTest  ,
HighestPoint   
)

◆ TEST_F() [9/99]

TEST_F ( EllipseTest  ,
IntersectsWithPointOnBorder   
)

Definition at line 867 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [10/99]

TEST_F ( EllipseTest  ,
IsClockwise   
)

◆ TEST_F() [11/99]

TEST_F ( EllipseTest  ,
LeftmostPoint   
)

Definition at line 830 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and l.

◆ TEST_F() [12/99]

TEST_F ( EllipseTest  ,
LowestPoint   
)

Definition at line 823 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and l.

◆ TEST_F() [13/99]

TEST_F ( EllipseTest  ,
ParameterizedConstruction   
)

Definition at line 801 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [14/99]

TEST_F ( EllipseTest  ,
PointIsInsideEllipse   
)

Definition at line 878 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [15/99]

TEST_F ( EllipseTest  ,
RightmostPoint   
)

◆ TEST_F() [16/99]

TEST_F ( EllipseTest  ,
SegmentThroughCenterIntersectionStable   
)

◆ TEST_F() [17/99]

TEST_F ( EllipseTest  ,
VerticalSegmentOutsideYRangeDoesNotIntersect   
)

◆ TEST_F() [18/99]

TEST_F ( PointTest  ,
Addition   
)

Definition at line 106 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::sum().

◆ TEST_F() [19/99]

TEST_F ( PointTest  ,
AdditionAssignment   
)

◆ TEST_F() [20/99]

TEST_F ( PointTest  ,
DefaultConstruction   
)

Definition at line 87 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [21/99]

TEST_F ( PointTest  ,
DistanceSquaredTo   
)

Definition at line 157 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [22/99]

TEST_F ( PointTest  ,
DistanceWith   
)

Definition at line 149 of file point_test.cc.

References approx_equal(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [23/99]

TEST_F ( PointTest  ,
Equality   
)

Definition at line 99 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [24/99]

TEST_F ( PointTest  ,
HashSupport   
)

Definition at line 274 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [25/99]

TEST_F ( PointTest  ,
HighestLowestLeftmostRightmost   
)

Definition at line 239 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [26/99]

TEST_F ( PointTest  ,
IsBetween   
)

Definition at line 218 of file point_test.cc.

References between(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [27/99]

TEST_F ( PointTest  ,
IsClockwiseWith   
)

Definition at line 209 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [28/99]

TEST_F ( PointTest  ,
IsColinearWithPoints   
)

Definition at line 165 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [29/99]

TEST_F ( PointTest  ,
IsToLeftFrom   
)

Definition at line 176 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [30/99]

TEST_F ( PointTest  ,
IsToLeftOnFrom   
)

Definition at line 198 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [31/99]

TEST_F ( PointTest  ,
IsToRightFrom   
)

Definition at line 187 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [32/99]

TEST_F ( PointTest  ,
LexicographicOrder   
)

Definition at line 267 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [33/99]

TEST_F ( PointTest  ,
NearestPoint   
)

◆ TEST_F() [34/99]

TEST_F ( PointTest  ,
NormNormalizeRotateAndLerp   
)

◆ TEST_F() [35/99]

TEST_F ( PointTest  ,
ParameterizedConstruction   
)

Definition at line 93 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [36/99]

TEST_F ( PointTest  ,
StringCastOperator   
)

Definition at line 143 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [37/99]

TEST_F ( PointTest  ,
Subtraction   
)

Definition at line 121 of file point_test.cc.

References Aleph::diff(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [38/99]

TEST_F ( PointTest  ,
SubtractionAssignment   
)

◆ TEST_F() [39/99]

TEST_F ( PointTest  ,
ToString   
)

Definition at line 136 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [40/99]

TEST_F ( PolarPointTest  ,
ConversionFromCartesian   
)

Definition at line 292 of file point_test.cc.

References approx_equal(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [41/99]

TEST_F ( PolarPointTest  ,
ConversionToCartesian   
)

Definition at line 297 of file point_test.cc.

References approx_equal(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [42/99]

TEST_F ( PolarPointTest  ,
DefaultConstruction   
)

Definition at line 349 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [43/99]

TEST_F ( PolarPointTest  ,
QuadrantFirst   
)

◆ TEST_F() [44/99]

TEST_F ( PolarPointTest  ,
QuadrantFourth   
)

◆ TEST_F() [45/99]

TEST_F ( PolarPointTest  ,
QuadrantSecond   
)

◆ TEST_F() [46/99]

TEST_F ( PolarPointTest  ,
QuadrantThird   
)

◆ TEST_F() [47/99]

TEST_F ( PolarPointTest  ,
RoundTripConversion   
)

Definition at line 304 of file point_test.cc.

References approx_equal(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [48/99]

TEST_F ( PolarPointTest  ,
ToString   
)

Definition at line 342 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [49/99]

TEST_F ( RectangleTest  ,
Contains   
)

Definition at line 730 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and r.

◆ TEST_F() [50/99]

TEST_F ( RectangleTest  ,
DefaultConstruction   
)

Definition at line 697 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [51/99]

TEST_F ( RectangleTest  ,
DistanceSquaredTo   
)

Definition at line 750 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and r.

◆ TEST_F() [52/99]

TEST_F ( RectangleTest  ,
DistanceTo   
)

Definition at line 759 of file point_test.cc.

References approx_equal(), Aleph::divide_and_conquer_partition_dp(), and r.

◆ TEST_F() [53/99]

TEST_F ( RectangleTest  ,
Height   
)

Definition at line 725 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and r.

◆ TEST_F() [54/99]

TEST_F ( RectangleTest  ,
Intersects   
)

Definition at line 741 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and r.

◆ TEST_F() [55/99]

TEST_F ( RectangleTest  ,
InvalidRectangleThrows   
)

Definition at line 714 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [56/99]

TEST_F ( RectangleTest  ,
ParameterizedConstruction   
)

Definition at line 706 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and r.

◆ TEST_F() [57/99]

TEST_F ( RectangleTest  ,
SetRect   
)

◆ TEST_F() [58/99]

TEST_F ( RectangleTest  ,
SetRectInvalidThrows   
)

Definition at line 777 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [59/99]

TEST_F ( RectangleTest  ,
Width   
)

Definition at line 720 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and r.

◆ TEST_F() [60/99]

TEST_F ( SegmentTest  ,
ContainsToPoint   
)

Definition at line 445 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [61/99]

TEST_F ( SegmentTest  ,
CounterclockwiseAngle   
)

Definition at line 583 of file point_test.cc.

References approx_equal(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [62/99]

TEST_F ( SegmentTest  ,
DefaultConstruction   
)

Definition at line 373 of file point_test.cc.

◆ TEST_F() [63/99]

TEST_F ( SegmentTest  ,
Equality   
)

Definition at line 385 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [64/99]

TEST_F ( SegmentTest  ,
GetPerpendicular   
)

◆ TEST_F() [65/99]

TEST_F ( SegmentTest  ,
HighestPoint   
)

◆ TEST_F() [66/99]

TEST_F ( SegmentTest  ,
IntersectionWith   
)

Definition at line 491 of file point_test.cc.

References approx_equal(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [67/99]

TEST_F ( SegmentTest  ,
IntersectionWithParallelThrows   
)

Definition at line 501 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [68/99]

TEST_F ( SegmentTest  ,
IntersectsProperlyWith   
)

Definition at line 483 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [69/99]

TEST_F ( SegmentTest  ,
IntersectsWith   
)

Definition at line 473 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [70/99]

TEST_F ( SegmentTest  ,
IsColinearWith   
)

Definition at line 454 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [71/99]

TEST_F ( SegmentTest  ,
IsParallelWith   
)

Definition at line 463 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [72/99]

TEST_F ( SegmentTest  ,
LeftmostPoint   
)

Definition at line 431 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and l.

◆ TEST_F() [73/99]

TEST_F ( SegmentTest  ,
LowestPoint   
)

Definition at line 424 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and l.

◆ TEST_F() [74/99]

TEST_F ( SegmentTest  ,
MidPoint   
)

Definition at line 410 of file point_test.cc.

References approx_equal(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [75/99]

TEST_F ( SegmentTest  ,
RightmostPoint   
)

◆ TEST_F() [76/99]

TEST_F ( SegmentTest  ,
Rotate   
)

◆ TEST_F() [77/99]

TEST_F ( SegmentTest  ,
SenseEast   
)

Definition at line 509 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::E.

◆ TEST_F() [78/99]

TEST_F ( SegmentTest  ,
SenseNorth   
)

Definition at line 521 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::N.

◆ TEST_F() [79/99]

TEST_F ( SegmentTest  ,
SenseNorthEast   
)

Definition at line 533 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::NE.

◆ TEST_F() [80/99]

TEST_F ( SegmentTest  ,
SenseNorthWest   
)

Definition at line 545 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::NW.

◆ TEST_F() [81/99]

TEST_F ( SegmentTest  ,
SenseSouth   
)

Definition at line 527 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::S.

◆ TEST_F() [82/99]

TEST_F ( SegmentTest  ,
SenseSouthEast   
)

Definition at line 551 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::SE.

◆ TEST_F() [83/99]

TEST_F ( SegmentTest  ,
SenseSouthWest   
)

Definition at line 539 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::SW.

◆ TEST_F() [84/99]

TEST_F ( SegmentTest  ,
SenseWest   
)

Definition at line 515 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::W.

◆ TEST_F() [85/99]

TEST_F ( SegmentTest  ,
Size   
)

Definition at line 395 of file point_test.cc.

References approx_equal(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [86/99]

TEST_F ( SegmentTest  ,
Slope   
)

Definition at line 404 of file point_test.cc.

References approx_equal(), and Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [87/99]

TEST_F ( SegmentTest  ,
ToString   
)

Definition at line 557 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [88/99]

TEST_F ( SegmentTest  ,
TwoPointConstruction   
)

Definition at line 379 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [89/99]

TEST_F ( TriangleTest  ,
Area   
)

Definition at line 635 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [90/99]

TEST_F ( TriangleTest  ,
CollinearPointsThrow   
)

Definition at line 626 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [91/99]

TEST_F ( TriangleTest  ,
ConstructionFromPointAndSegment   
)

Definition at line 610 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [92/99]

TEST_F ( TriangleTest  ,
ConstructionFromSegmentAndPoint   
)

Definition at line 618 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [93/99]

TEST_F ( TriangleTest  ,
ContainsTo   
)

Definition at line 642 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [94/99]

TEST_F ( TriangleTest  ,
HighestPoint   
)

◆ TEST_F() [95/99]

TEST_F ( TriangleTest  ,
IsClockwise   
)

Definition at line 675 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

◆ TEST_F() [96/99]

TEST_F ( TriangleTest  ,
LeftmostPoint   
)

Definition at line 663 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and l.

◆ TEST_F() [97/99]

TEST_F ( TriangleTest  ,
LowestPoint   
)

Definition at line 657 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp(), and l.

◆ TEST_F() [98/99]

TEST_F ( TriangleTest  ,
RightmostPoint   
)

◆ TEST_F() [99/99]

TEST_F ( TriangleTest  ,
ThreePointConstruction   
)

Definition at line 603 of file point_test.cc.

References Aleph::divide_and_conquer_partition_dp().

Variable Documentation

◆ EPSILON

constexpr double EPSILON = 1e-9
constexpr

Definition at line 60 of file point_test.cc.