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 <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 (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 (HelperFunctionTest, AreaOfParallelogram)
 
 TEST (HelperFunctionTest, AreaOfParallelogramNegative)
 
 TEST (HelperFunctionTest, Pitag)
 
 TEST (HelperFunctionTest, PitagZero)
 
 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 (NullPointTest, Exists)
 
 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 (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 68 of file point_test.cc.

References Aleph::maps().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 1115 of file point_test.cc.

References Aleph::maps().

◆ TEST() [1/30]

TEST ( EdgeCaseTest  ,
MidPerpendicular   
)

Definition at line 1079 of file point_test.cc.

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

◆ TEST() [2/30]

TEST ( EdgeCaseTest  ,
ParallelSegmentOffset   
)

Definition at line 1032 of file point_test.cc.

References approx_equal(), Aleph::maps(), and Aleph::HTList::size().

◆ TEST() [3/30]

TEST ( EdgeCaseTest  ,
PointOnSegment   
)

Definition at line 1071 of file point_test.cc.

References Aleph::maps().

◆ TEST() [4/30]

TEST ( EdgeCaseTest  ,
SegmentConstructionWithSlopeAndLength   
)

Definition at line 1021 of file point_test.cc.

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

◆ TEST() [5/30]

TEST ( EdgeCaseTest  ,
SegmentEnlargeSrc   
)

Definition at line 1043 of file point_test.cc.

References Aleph::maps(), and Aleph::HTList::size().

◆ TEST() [6/30]

TEST ( EdgeCaseTest  ,
SegmentEnlargeTgt   
)

Definition at line 1054 of file point_test.cc.

References Aleph::maps(), and Aleph::HTList::size().

◆ TEST() [7/30]

TEST ( EdgeCaseTest  ,
VerticalSegmentSlope   
)

Definition at line 1007 of file point_test.cc.

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

◆ TEST() [8/30]

TEST ( EdgeCaseTest  ,
VerticalSegmentSlopeNegative   
)

Definition at line 1014 of file point_test.cc.

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

◆ TEST() [9/30]

TEST ( EdgeCaseTest  ,
ZeroAreaTriangleFails   
)

Definition at line 1065 of file point_test.cc.

References Aleph::maps().

◆ TEST() [10/30]

TEST ( GeomObjectTest  ,
VirtualDestructor   
)

Definition at line 985 of file point_test.cc.

References Aleph::maps().

◆ TEST() [11/30]

TEST ( HelperFunctionTest  ,
Arctan   
)

◆ TEST() [12/30]

TEST ( HelperFunctionTest  ,
Arctan2   
)

◆ TEST() [13/30]

TEST ( HelperFunctionTest  ,
AreaOfParallelogram   
)

Definition at line 853 of file point_test.cc.

References area_of_parallelogram(), and Aleph::maps().

◆ TEST() [14/30]

TEST ( HelperFunctionTest  ,
AreaOfParallelogramNegative   
)

Definition at line 863 of file point_test.cc.

References area_of_parallelogram(), and Aleph::maps().

◆ TEST() [15/30]

TEST ( HelperFunctionTest  ,
Cosinus   
)

◆ TEST() [16/30]

TEST ( HelperFunctionTest  ,
GeomNumberToDouble   
)

Definition at line 915 of file point_test.cc.

References approx_equal(), geom_number_to_double(), and Aleph::maps().

◆ TEST() [17/30]

TEST ( HelperFunctionTest  ,
Pitag   
)

Definition at line 873 of file point_test.cc.

References approx_equal(), Aleph::maps(), and pitag().

◆ TEST() [18/30]

TEST ( HelperFunctionTest  ,
PitagZero   
)

Definition at line 879 of file point_test.cc.

References approx_equal(), Aleph::maps(), and pitag().

◆ TEST() [19/30]

TEST ( HelperFunctionTest  ,
Sinus   
)

◆ TEST() [20/30]

TEST ( HelperFunctionTest  ,
SquareRoot   
)

◆ TEST() [21/30]

TEST ( NullPointTest  ,
Exists   
)

Definition at line 996 of file point_test.cc.

References Point::get_x(), Point::get_y(), Aleph::maps(), and NullPoint.

◆ TEST() [22/30]

TEST ( SegmentTriangleTest  ,
SegmentDoesNotIntersectTriangle   
)

Definition at line 1103 of file point_test.cc.

References Aleph::maps().

◆ TEST() [23/30]

TEST ( SegmentTriangleTest  ,
SegmentIntersectsTriangle   
)

Definition at line 1095 of file point_test.cc.

References Aleph::maps().

◆ TEST() [24/30]

TEST ( TextTest  ,
AproximateStringSizeSimple   
)

Definition at line 926 of file point_test.cc.

References aproximate_string_size(), and Aleph::maps().

◆ TEST() [25/30]

TEST ( TextTest  ,
AproximateStringSizeWithBraces   
)

Definition at line 947 of file point_test.cc.

References aproximate_string_size(), and Aleph::maps().

◆ TEST() [26/30]

TEST ( TextTest  ,
AproximateStringSizeWithDollarSigns   
)

Definition at line 940 of file point_test.cc.

References aproximate_string_size(), and Aleph::maps().

◆ TEST() [27/30]

TEST ( TextTest  ,
AproximateStringSizeWithLatex   
)

Definition at line 933 of file point_test.cc.

References aproximate_string_size(), and Aleph::maps().

◆ TEST() [28/30]

TEST ( TextTest  ,
TextBoundingPoints   
)

Definition at line 970 of file point_test.cc.

References Aleph::maps().

◆ TEST() [29/30]

TEST ( TextTest  ,
TextConstruction   
)

Definition at line 954 of file point_test.cc.

References Aleph::maps().

◆ TEST() [30/30]

TEST ( TextTest  ,
TextDefaultConstruction   
)

Definition at line 964 of file point_test.cc.

◆ TEST_F() [1/93]

TEST_F ( EllipseTest  ,
ContainsToCenter   
)

Definition at line 809 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [2/93]

TEST_F ( EllipseTest  ,
ContainsToInside   
)

Definition at line 814 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [3/93]

TEST_F ( EllipseTest  ,
ContainsToOnBorder   
)

Definition at line 826 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [4/93]

TEST_F ( EllipseTest  ,
ContainsToOutside   
)

Definition at line 820 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [5/93]

TEST_F ( EllipseTest  ,
CopyConstruction   
)

Definition at line 773 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [6/93]

TEST_F ( EllipseTest  ,
DefaultConstruction   
)

Definition at line 760 of file point_test.cc.

◆ TEST_F() [7/93]

TEST_F ( EllipseTest  ,
HighestPoint   
)

Definition at line 781 of file point_test.cc.

References h, Point::highest_point(), and Aleph::maps().

◆ TEST_F() [8/93]

TEST_F ( EllipseTest  ,
IntersectsWithPointOnBorder   
)

Definition at line 832 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [9/93]

TEST_F ( EllipseTest  ,
IsClockwise   
)

Definition at line 838 of file point_test.cc.

References Ellipse::is_clockwise(), and Aleph::maps().

◆ TEST_F() [10/93]

TEST_F ( EllipseTest  ,
LeftmostPoint   
)

Definition at line 795 of file point_test.cc.

References l, and Aleph::maps().

◆ TEST_F() [11/93]

TEST_F ( EllipseTest  ,
LowestPoint   
)

Definition at line 788 of file point_test.cc.

References l, and Aleph::maps().

◆ TEST_F() [12/93]

TEST_F ( EllipseTest  ,
ParameterizedConstruction   
)

Definition at line 766 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [13/93]

TEST_F ( EllipseTest  ,
PointIsInsideEllipse   
)

Definition at line 843 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [14/93]

TEST_F ( EllipseTest  ,
RightmostPoint   
)

Definition at line 802 of file point_test.cc.

References Point::get_x(), Point::get_y(), Aleph::maps(), and Point::rightmost_point().

◆ TEST_F() [15/93]

TEST_F ( PointTest  ,
Addition   
)

Definition at line 105 of file point_test.cc.

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

◆ TEST_F() [16/93]

TEST_F ( PointTest  ,
AdditionAssignment   
)

Definition at line 112 of file point_test.cc.

References Point::get_x(), Point::get_y(), and Aleph::maps().

◆ TEST_F() [17/93]

TEST_F ( PointTest  ,
DefaultConstruction   
)

Definition at line 86 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [18/93]

TEST_F ( PointTest  ,
DistanceSquaredTo   
)

Definition at line 156 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [19/93]

TEST_F ( PointTest  ,
DistanceWith   
)

Definition at line 148 of file point_test.cc.

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

◆ TEST_F() [20/93]

TEST_F ( PointTest  ,
Equality   
)

Definition at line 98 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [21/93]

TEST_F ( PointTest  ,
HighestLowestLeftmostRightmost   
)

Definition at line 238 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [22/93]

TEST_F ( PointTest  ,
IsBetween   
)

Definition at line 217 of file point_test.cc.

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

◆ TEST_F() [23/93]

TEST_F ( PointTest  ,
IsClockwiseWith   
)

Definition at line 208 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [24/93]

TEST_F ( PointTest  ,
IsColinearWithPoints   
)

Definition at line 164 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [25/93]

TEST_F ( PointTest  ,
IsToLeftFrom   
)

Definition at line 175 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [26/93]

TEST_F ( PointTest  ,
IsToLeftOnFrom   
)

Definition at line 197 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [27/93]

TEST_F ( PointTest  ,
IsToRightFrom   
)

Definition at line 186 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [28/93]

TEST_F ( PointTest  ,
NearestPoint   
)

Definition at line 228 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [29/93]

TEST_F ( PointTest  ,
ParameterizedConstruction   
)

Definition at line 92 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [30/93]

TEST_F ( PointTest  ,
StringCastOperator   
)

Definition at line 142 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [31/93]

TEST_F ( PointTest  ,
Subtraction   
)

Definition at line 120 of file point_test.cc.

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

◆ TEST_F() [32/93]

TEST_F ( PointTest  ,
SubtractionAssignment   
)

Definition at line 127 of file point_test.cc.

References Point::get_x(), Point::get_y(), and Aleph::maps().

◆ TEST_F() [33/93]

TEST_F ( PointTest  ,
ToString   
)

Definition at line 135 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [34/93]

TEST_F ( PolarPointTest  ,
ConversionFromCartesian   
)

Definition at line 257 of file point_test.cc.

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

◆ TEST_F() [35/93]

TEST_F ( PolarPointTest  ,
ConversionToCartesian   
)

Definition at line 262 of file point_test.cc.

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

◆ TEST_F() [36/93]

TEST_F ( PolarPointTest  ,
DefaultConstruction   
)

Definition at line 314 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [37/93]

TEST_F ( PolarPointTest  ,
QuadrantFirst   
)

Definition at line 279 of file point_test.cc.

References Polar_Point::First, and Aleph::maps().

◆ TEST_F() [38/93]

TEST_F ( PolarPointTest  ,
QuadrantFourth   
)

Definition at line 300 of file point_test.cc.

References Polar_Point::Fourth, and Aleph::maps().

◆ TEST_F() [39/93]

TEST_F ( PolarPointTest  ,
QuadrantSecond   
)

Definition at line 286 of file point_test.cc.

References Aleph::maps(), and Polar_Point::Second.

◆ TEST_F() [40/93]

TEST_F ( PolarPointTest  ,
QuadrantThird   
)

Definition at line 293 of file point_test.cc.

References Aleph::maps(), and Polar_Point::Third.

◆ TEST_F() [41/93]

TEST_F ( PolarPointTest  ,
RoundTripConversion   
)

Definition at line 269 of file point_test.cc.

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

◆ TEST_F() [42/93]

TEST_F ( PolarPointTest  ,
ToString   
)

Definition at line 307 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [43/93]

TEST_F ( RectangleTest  ,
Contains   
)

Definition at line 695 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [44/93]

TEST_F ( RectangleTest  ,
DefaultConstruction   
)

Definition at line 662 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [45/93]

TEST_F ( RectangleTest  ,
DistanceSquaredTo   
)

Definition at line 715 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [46/93]

TEST_F ( RectangleTest  ,
DistanceTo   
)

Definition at line 724 of file point_test.cc.

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

◆ TEST_F() [47/93]

TEST_F ( RectangleTest  ,
Height   
)

Definition at line 690 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [48/93]

TEST_F ( RectangleTest  ,
Intersects   
)

Definition at line 706 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [49/93]

TEST_F ( RectangleTest  ,
InvalidRectangleThrows   
)

Definition at line 679 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [50/93]

TEST_F ( RectangleTest  ,
ParameterizedConstruction   
)

Definition at line 671 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [51/93]

TEST_F ( RectangleTest  ,
SetRect   
)

Definition at line 731 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [52/93]

TEST_F ( RectangleTest  ,
SetRectInvalidThrows   
)

Definition at line 742 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [53/93]

TEST_F ( RectangleTest  ,
Width   
)

Definition at line 685 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [54/93]

TEST_F ( SegmentTest  ,
ContainsToPoint   
)

Definition at line 410 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [55/93]

TEST_F ( SegmentTest  ,
CounterclockwiseAngle   
)

Definition at line 548 of file point_test.cc.

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

◆ TEST_F() [56/93]

TEST_F ( SegmentTest  ,
DefaultConstruction   
)

Definition at line 338 of file point_test.cc.

◆ TEST_F() [57/93]

TEST_F ( SegmentTest  ,
Equality   
)

Definition at line 350 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [58/93]

TEST_F ( SegmentTest  ,
GetPerpendicular   
)

Definition at line 537 of file point_test.cc.

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

◆ TEST_F() [59/93]

TEST_F ( SegmentTest  ,
HighestPoint   
)

Definition at line 382 of file point_test.cc.

References h, Point::highest_point(), and Aleph::maps().

◆ TEST_F() [60/93]

TEST_F ( SegmentTest  ,
IntersectionWith   
)

Definition at line 456 of file point_test.cc.

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

◆ TEST_F() [61/93]

TEST_F ( SegmentTest  ,
IntersectionWithParallelThrows   
)

Definition at line 466 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [62/93]

TEST_F ( SegmentTest  ,
IntersectsProperlyWith   
)

Definition at line 448 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [63/93]

TEST_F ( SegmentTest  ,
IntersectsWith   
)

Definition at line 438 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [64/93]

TEST_F ( SegmentTest  ,
IsColinearWith   
)

Definition at line 419 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [65/93]

TEST_F ( SegmentTest  ,
IsParallelWith   
)

Definition at line 428 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [66/93]

TEST_F ( SegmentTest  ,
LeftmostPoint   
)

Definition at line 396 of file point_test.cc.

References l, and Aleph::maps().

◆ TEST_F() [67/93]

TEST_F ( SegmentTest  ,
LowestPoint   
)

Definition at line 389 of file point_test.cc.

References l, and Aleph::maps().

◆ TEST_F() [68/93]

TEST_F ( SegmentTest  ,
MidPoint   
)

Definition at line 375 of file point_test.cc.

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

◆ TEST_F() [69/93]

TEST_F ( SegmentTest  ,
RightmostPoint   
)

Definition at line 403 of file point_test.cc.

References Point::get_x(), Aleph::maps(), and Point::rightmost_point().

◆ TEST_F() [70/93]

TEST_F ( SegmentTest  ,
Rotate   
)

Definition at line 528 of file point_test.cc.

References approx_equal(), Aleph::maps(), and PI.

◆ TEST_F() [71/93]

TEST_F ( SegmentTest  ,
SenseEast   
)

Definition at line 474 of file point_test.cc.

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

◆ TEST_F() [72/93]

TEST_F ( SegmentTest  ,
SenseNorth   
)

Definition at line 486 of file point_test.cc.

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

◆ TEST_F() [73/93]

TEST_F ( SegmentTest  ,
SenseNorthEast   
)

Definition at line 498 of file point_test.cc.

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

◆ TEST_F() [74/93]

TEST_F ( SegmentTest  ,
SenseNorthWest   
)

Definition at line 510 of file point_test.cc.

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

◆ TEST_F() [75/93]

TEST_F ( SegmentTest  ,
SenseSouth   
)

Definition at line 492 of file point_test.cc.

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

◆ TEST_F() [76/93]

TEST_F ( SegmentTest  ,
SenseSouthEast   
)

Definition at line 516 of file point_test.cc.

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

◆ TEST_F() [77/93]

TEST_F ( SegmentTest  ,
SenseSouthWest   
)

Definition at line 504 of file point_test.cc.

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

◆ TEST_F() [78/93]

TEST_F ( SegmentTest  ,
SenseWest   
)

Definition at line 480 of file point_test.cc.

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

◆ TEST_F() [79/93]

TEST_F ( SegmentTest  ,
Size   
)

Definition at line 360 of file point_test.cc.

References approx_equal(), Aleph::maps(), and Aleph::HTList::size().

◆ TEST_F() [80/93]

TEST_F ( SegmentTest  ,
Slope   
)

Definition at line 369 of file point_test.cc.

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

◆ TEST_F() [81/93]

TEST_F ( SegmentTest  ,
ToString   
)

Definition at line 522 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [82/93]

TEST_F ( SegmentTest  ,
TwoPointConstruction   
)

Definition at line 344 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [83/93]

TEST_F ( TriangleTest  ,
Area   
)

Definition at line 600 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [84/93]

TEST_F ( TriangleTest  ,
CollinearPointsThrow   
)

Definition at line 591 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [85/93]

TEST_F ( TriangleTest  ,
ConstructionFromPointAndSegment   
)

Definition at line 575 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [86/93]

TEST_F ( TriangleTest  ,
ConstructionFromSegmentAndPoint   
)

Definition at line 583 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [87/93]

TEST_F ( TriangleTest  ,
ContainsTo   
)

Definition at line 607 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [88/93]

TEST_F ( TriangleTest  ,
HighestPoint   
)

Definition at line 616 of file point_test.cc.

References h, Point::highest_point(), and Aleph::maps().

◆ TEST_F() [89/93]

TEST_F ( TriangleTest  ,
IsClockwise   
)

Definition at line 640 of file point_test.cc.

References Aleph::maps().

◆ TEST_F() [90/93]

TEST_F ( TriangleTest  ,
LeftmostPoint   
)

Definition at line 628 of file point_test.cc.

References l, and Aleph::maps().

◆ TEST_F() [91/93]

TEST_F ( TriangleTest  ,
LowestPoint   
)

Definition at line 622 of file point_test.cc.

References l, and Aleph::maps().

◆ TEST_F() [92/93]

TEST_F ( TriangleTest  ,
RightmostPoint   
)

Definition at line 634 of file point_test.cc.

References Point::get_x(), Aleph::maps(), and Point::rightmost_point().

◆ TEST_F() [93/93]

TEST_F ( TriangleTest  ,
ThreePointConstruction   
)

Definition at line 568 of file point_test.cc.

References Aleph::maps().

Variable Documentation

◆ EPSILON

constexpr double EPSILON = 1e-9
constexpr

Definition at line 59 of file point_test.cc.