|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
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 |
Tests for Point.
Comprehensive test suite for point.H geometry module.
Tests cover:
Definition in file point_test.cc.
| bool approx_equal | ( | const Geom_Number & | a, |
| const Geom_Number & | b, | ||
| double | tol = EPSILON |
||
| ) |
Definition at line 63 of file point_test.cc.
References __gmp_expr< mpq_t, mpq_t >::get_d().
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| bool approx_equal | ( | double | a, |
| double | b, | ||
| double | tol = EPSILON |
||
| ) |
Definition at line 69 of file point_test.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 1173 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | EdgeCaseTest | , |
| MidPerpendicular | |||
| ) |
Definition at line 1131 of file point_test.cc.
References approx_equal(), Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::mid_perpendicular().
| TEST | ( | EdgeCaseTest | , |
| MidPerpendicularZeroLengthThrows | |||
| ) |
Definition at line 1143 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | EdgeCaseTest | , |
| ParallelSegmentOffset | |||
| ) |
Definition at line 1084 of file point_test.cc.
References approx_equal(), and Aleph::divide_and_conquer_partition_dp().
| TEST | ( | EdgeCaseTest | , |
| PointOnSegment | |||
| ) |
Definition at line 1123 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::on_segment().
| TEST | ( | EdgeCaseTest | , |
| SegmentConstructionWithSlopeAndLength | |||
| ) |
Definition at line 1073 of file point_test.cc.
References approx_equal(), and Aleph::divide_and_conquer_partition_dp().
| TEST | ( | EdgeCaseTest | , |
| SegmentEnlargeSrc | |||
| ) |
Definition at line 1095 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | EdgeCaseTest | , |
| SegmentEnlargeTgt | |||
| ) |
Definition at line 1106 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | EdgeCaseTest | , |
| VerticalSegmentSlope | |||
| ) |
Definition at line 1059 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::vertical.
| TEST | ( | EdgeCaseTest | , |
| VerticalSegmentSlopeNegative | |||
| ) |
Definition at line 1066 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::vertical.
| TEST | ( | EdgeCaseTest | , |
| ZeroAreaTriangleFails | |||
| ) |
Definition at line 1117 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | GeomObjectTest | , |
| VirtualDestructor | |||
| ) |
Definition at line 1048 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | HelperFunctionTest | , |
| Arctan | |||
| ) |
Definition at line 948 of file point_test.cc.
References approx_equal(), Aleph::arctan(), Aleph::divide_and_conquer_partition_dp(), __gmp_expr< mpq_t, mpq_t >::get_d(), and Aleph::PI.
| TEST | ( | HelperFunctionTest | , |
| Arctan2 | |||
| ) |
Definition at line 954 of file point_test.cc.
References approx_equal(), Aleph::arctan2(), Aleph::divide_and_conquer_partition_dp(), __gmp_expr< mpq_t, mpq_t >::get_d(), and Aleph::PI.
| TEST | ( | HelperFunctionTest | , |
| AreaOfParallelogram | |||
| ) |
Definition at line 916 of file point_test.cc.
References Aleph::area_of_parallelogram(), and Aleph::divide_and_conquer_partition_dp().
| TEST | ( | HelperFunctionTest | , |
| AreaOfParallelogramNegative | |||
| ) |
Definition at line 926 of file point_test.cc.
References Aleph::area_of_parallelogram(), and Aleph::divide_and_conquer_partition_dp().
| TEST | ( | HelperFunctionTest | , |
| Cosinus | |||
| ) |
Definition at line 966 of file point_test.cc.
References approx_equal(), Aleph::cosinus(), Aleph::divide_and_conquer_partition_dp(), and __gmp_expr< mpq_t, mpq_t >::get_d().
| TEST | ( | HelperFunctionTest | , |
| EuclideanDistance | |||
| ) |
Definition at line 936 of file point_test.cc.
References approx_equal(), Aleph::divide_and_conquer_partition_dp(), and Aleph::euclidean_distance().
| TEST | ( | HelperFunctionTest | , |
| EuclideanDistanceZero | |||
| ) |
Definition at line 942 of file point_test.cc.
References approx_equal(), Aleph::divide_and_conquer_partition_dp(), and Aleph::euclidean_distance().
| TEST | ( | HelperFunctionTest | , |
| GeomNumberToDouble | |||
| ) |
Definition at line 978 of file point_test.cc.
References approx_equal(), Aleph::divide_and_conquer_partition_dp(), and Aleph::geom_number_to_double().
| TEST | ( | HelperFunctionTest | , |
| Sinus | |||
| ) |
Definition at line 960 of file point_test.cc.
References approx_equal(), Aleph::divide_and_conquer_partition_dp(), __gmp_expr< mpq_t, mpq_t >::get_d(), Aleph::PI, and Aleph::sinus().
| TEST | ( | HelperFunctionTest | , |
| SquareRoot | |||
| ) |
Definition at line 972 of file point_test.cc.
References approx_equal(), Aleph::divide_and_conquer_partition_dp(), __gmp_expr< mpq_t, mpq_t >::get_d(), and Aleph::square_root().
| TEST | ( | SegmentTriangleTest | , |
| SegmentDoesNotIntersectTriangle | |||
| ) |
Definition at line 1161 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | SegmentTriangleTest | , |
| SegmentIntersectsTriangle | |||
| ) |
Definition at line 1153 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | TextTest | , |
| AproximateStringSizeSimple | |||
| ) |
Definition at line 989 of file point_test.cc.
References Aleph::approximate_string_size(), and Aleph::divide_and_conquer_partition_dp().
| TEST | ( | TextTest | , |
| AproximateStringSizeWithBraces | |||
| ) |
Definition at line 1010 of file point_test.cc.
References Aleph::approximate_string_size(), and Aleph::divide_and_conquer_partition_dp().
| TEST | ( | TextTest | , |
| AproximateStringSizeWithDollarSigns | |||
| ) |
Definition at line 1003 of file point_test.cc.
References Aleph::approximate_string_size(), and Aleph::divide_and_conquer_partition_dp().
| TEST | ( | TextTest | , |
| AproximateStringSizeWithLatex | |||
| ) |
Definition at line 996 of file point_test.cc.
References Aleph::approximate_string_size(), and Aleph::divide_and_conquer_partition_dp().
| TEST | ( | TextTest | , |
| TextBoundingPoints | |||
| ) |
Definition at line 1033 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | TextTest | , |
| TextConstruction | |||
| ) |
Definition at line 1017 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | TextTest | , |
| TextDefaultConstruction | |||
| ) |
Definition at line 1027 of file point_test.cc.
| TEST_F | ( | EllipseTest | , |
| ContainsToCenter | |||
| ) |
Definition at line 844 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | EllipseTest | , |
| ContainsToInside | |||
| ) |
Definition at line 849 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | EllipseTest | , |
| ContainsToOnBorder | |||
| ) |
Definition at line 861 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | EllipseTest | , |
| ContainsToOutside | |||
| ) |
Definition at line 855 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | EllipseTest | , |
| CopyConstruction | |||
| ) |
Definition at line 808 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | EllipseTest | , |
| DefaultConstruction | |||
| ) |
Definition at line 795 of file point_test.cc.
| TEST_F | ( | EllipseTest | , |
| ExtraEllipseApis | |||
| ) |
Definition at line 903 of file point_test.cc.
References approx_equal(), Aleph::divide_and_conquer_partition_dp(), and Aleph::PI.
| TEST_F | ( | EllipseTest | , |
| HighestPoint | |||
| ) |
Definition at line 816 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), h, and Aleph::Point::highest_point().
| TEST_F | ( | EllipseTest | , |
| IntersectsWithPointOnBorder | |||
| ) |
Definition at line 867 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | EllipseTest | , |
| IsClockwise | |||
| ) |
Definition at line 873 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Ellipse::is_clockwise().
| TEST_F | ( | EllipseTest | , |
| LeftmostPoint | |||
| ) |
Definition at line 830 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and l.
| TEST_F | ( | EllipseTest | , |
| LowestPoint | |||
| ) |
Definition at line 823 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and l.
| TEST_F | ( | EllipseTest | , |
| ParameterizedConstruction | |||
| ) |
Definition at line 801 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | EllipseTest | , |
| PointIsInsideEllipse | |||
| ) |
Definition at line 878 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | EllipseTest | , |
| RightmostPoint | |||
| ) |
Definition at line 837 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), r, and Aleph::Point::rightmost_point().
| TEST_F | ( | EllipseTest | , |
| SegmentThroughCenterIntersectionStable | |||
| ) |
Definition at line 891 of file point_test.cc.
References approx_equal(), Aleph::divide_and_conquer_partition_dp(), and Aleph::Ellipse::intersection_with().
| TEST_F | ( | EllipseTest | , |
| VerticalSegmentOutsideYRangeDoesNotIntersect | |||
| ) |
Definition at line 884 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Ellipse::intersects_with().
| 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 | ( | PointTest | , |
| AdditionAssignment | |||
| ) |
Definition at line 113 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Point::get_x(), and Aleph::Point::get_y().
| TEST_F | ( | PointTest | , |
| DefaultConstruction | |||
| ) |
Definition at line 87 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| DistanceSquaredTo | |||
| ) |
Definition at line 157 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| 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 | ( | PointTest | , |
| Equality | |||
| ) |
Definition at line 99 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| HashSupport | |||
| ) |
Definition at line 274 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| HighestLowestLeftmostRightmost | |||
| ) |
Definition at line 239 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| IsBetween | |||
| ) |
Definition at line 218 of file point_test.cc.
References between(), and Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| IsClockwiseWith | |||
| ) |
Definition at line 209 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| IsColinearWithPoints | |||
| ) |
Definition at line 165 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| IsToLeftFrom | |||
| ) |
Definition at line 176 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| IsToLeftOnFrom | |||
| ) |
Definition at line 198 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| IsToRightFrom | |||
| ) |
Definition at line 187 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| LexicographicOrder | |||
| ) |
Definition at line 267 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| NearestPoint | |||
| ) |
Definition at line 229 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Point::nearest_point().
| TEST_F | ( | PointTest | , |
| NormNormalizeRotateAndLerp | |||
| ) |
Definition at line 247 of file point_test.cc.
References approx_equal(), Aleph::divide_and_conquer_partition_dp(), Aleph::Point::normalize(), Aleph::PI_2, and Aleph::Point::rotate().
| TEST_F | ( | PointTest | , |
| ParameterizedConstruction | |||
| ) |
Definition at line 93 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PointTest | , |
| StringCastOperator | |||
| ) |
Definition at line 143 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| 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 | ( | PointTest | , |
| SubtractionAssignment | |||
| ) |
Definition at line 128 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Point::get_x(), and Aleph::Point::get_y().
| TEST_F | ( | PointTest | , |
| ToString | |||
| ) |
Definition at line 136 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| 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 | ( | PolarPointTest | , |
| ConversionToCartesian | |||
| ) |
Definition at line 297 of file point_test.cc.
References approx_equal(), and Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PolarPointTest | , |
| DefaultConstruction | |||
| ) |
Definition at line 349 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | PolarPointTest | , |
| QuadrantFirst | |||
| ) |
Definition at line 314 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Polar_Point::First.
| TEST_F | ( | PolarPointTest | , |
| QuadrantFourth | |||
| ) |
Definition at line 335 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Polar_Point::Fourth.
| TEST_F | ( | PolarPointTest | , |
| QuadrantSecond | |||
| ) |
Definition at line 321 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Polar_Point::Second.
| TEST_F | ( | PolarPointTest | , |
| QuadrantThird | |||
| ) |
Definition at line 328 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Polar_Point::Third.
| 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 | ( | PolarPointTest | , |
| ToString | |||
| ) |
Definition at line 342 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | RectangleTest | , |
| Contains | |||
| ) |
Definition at line 730 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and r.
| TEST_F | ( | RectangleTest | , |
| DefaultConstruction | |||
| ) |
Definition at line 697 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | RectangleTest | , |
| DistanceSquaredTo | |||
| ) |
Definition at line 750 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and r.
| 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 | ( | RectangleTest | , |
| Height | |||
| ) |
Definition at line 725 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and r.
| TEST_F | ( | RectangleTest | , |
| Intersects | |||
| ) |
Definition at line 741 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and r.
| TEST_F | ( | RectangleTest | , |
| InvalidRectangleThrows | |||
| ) |
Definition at line 714 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | RectangleTest | , |
| ParameterizedConstruction | |||
| ) |
Definition at line 706 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and r.
| TEST_F | ( | RectangleTest | , |
| SetRect | |||
| ) |
Definition at line 766 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Rectangle::set_rect().
| TEST_F | ( | RectangleTest | , |
| SetRectInvalidThrows | |||
| ) |
Definition at line 777 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | RectangleTest | , |
| Width | |||
| ) |
Definition at line 720 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and r.
| TEST_F | ( | SegmentTest | , |
| ContainsToPoint | |||
| ) |
Definition at line 445 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| 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 | ( | SegmentTest | , |
| DefaultConstruction | |||
| ) |
Definition at line 373 of file point_test.cc.
| TEST_F | ( | SegmentTest | , |
| Equality | |||
| ) |
Definition at line 385 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| GetPerpendicular | |||
| ) |
Definition at line 572 of file point_test.cc.
References approx_equal(), Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::get_perpendicular().
| TEST_F | ( | SegmentTest | , |
| HighestPoint | |||
| ) |
Definition at line 417 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), h, and Aleph::Point::highest_point().
| 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 | ( | SegmentTest | , |
| IntersectionWithParallelThrows | |||
| ) |
Definition at line 501 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| IntersectsProperlyWith | |||
| ) |
Definition at line 483 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| IntersectsWith | |||
| ) |
Definition at line 473 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| IsColinearWith | |||
| ) |
Definition at line 454 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| IsParallelWith | |||
| ) |
Definition at line 463 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| LeftmostPoint | |||
| ) |
Definition at line 431 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and l.
| TEST_F | ( | SegmentTest | , |
| LowestPoint | |||
| ) |
Definition at line 424 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and l.
| 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 | ( | SegmentTest | , |
| RightmostPoint | |||
| ) |
Definition at line 438 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), r, and Aleph::Point::rightmost_point().
| TEST_F | ( | SegmentTest | , |
| Rotate | |||
| ) |
Definition at line 563 of file point_test.cc.
References approx_equal(), Aleph::divide_and_conquer_partition_dp(), Aleph::PI, and Aleph::Point::rotate().
| 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 | ( | SegmentTest | , |
| SenseNorth | |||
| ) |
Definition at line 521 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::N.
| 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 | ( | SegmentTest | , |
| SenseNorthWest | |||
| ) |
Definition at line 545 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::NW.
| 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 | ( | SegmentTest | , |
| SenseSouthEast | |||
| ) |
Definition at line 551 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::SE.
| 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 | ( | SegmentTest | , |
| SenseWest | |||
| ) |
Definition at line 515 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::W.
| 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 | ( | SegmentTest | , |
| Slope | |||
| ) |
Definition at line 404 of file point_test.cc.
References approx_equal(), and Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| ToString | |||
| ) |
Definition at line 557 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| TwoPointConstruction | |||
| ) |
Definition at line 379 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | TriangleTest | , |
| Area | |||
| ) |
Definition at line 635 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | TriangleTest | , |
| CollinearPointsThrow | |||
| ) |
Definition at line 626 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | TriangleTest | , |
| ConstructionFromPointAndSegment | |||
| ) |
Definition at line 610 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | TriangleTest | , |
| ConstructionFromSegmentAndPoint | |||
| ) |
Definition at line 618 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | TriangleTest | , |
| ContainsTo | |||
| ) |
Definition at line 642 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | TriangleTest | , |
| HighestPoint | |||
| ) |
Definition at line 651 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), h, and Aleph::Point::highest_point().
| TEST_F | ( | TriangleTest | , |
| IsClockwise | |||
| ) |
Definition at line 675 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | TriangleTest | , |
| LeftmostPoint | |||
| ) |
Definition at line 663 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and l.
| TEST_F | ( | TriangleTest | , |
| LowestPoint | |||
| ) |
Definition at line 657 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and l.
| TEST_F | ( | TriangleTest | , |
| RightmostPoint | |||
| ) |
Definition at line 669 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp(), r, and Aleph::Point::rightmost_point().
| TEST_F | ( | TriangleTest | , |
| ThreePointConstruction | |||
| ) |
Definition at line 603 of file point_test.cc.
References Aleph::divide_and_conquer_partition_dp().
|
constexpr |
Definition at line 60 of file point_test.cc.