|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for the Segment class defined in point.H. More...
Go to the source code of this file.
Classes | |
| class | SegmentTest |
Functions | |
| TEST_F (SegmentTest, DefaultConstructor) | |
| TEST_F (SegmentTest, TwoPointConstructor) | |
| TEST_F (SegmentTest, CopyConstructor) | |
| TEST_F (SegmentTest, SlopeLengthConstructor) | |
| TEST_F (SegmentTest, GetEndpoints) | |
| TEST_F (SegmentTest, HighestPoint) | |
| TEST_F (SegmentTest, LowestPoint) | |
| TEST_F (SegmentTest, LeftmostPoint) | |
| TEST_F (SegmentTest, RightmostPoint) | |
| TEST_F (SegmentTest, Size) | |
| TEST_F (SegmentTest, MidPoint) | |
| TEST_F (SegmentTest, MidPointNegative) | |
| TEST_F (SegmentTest, Slope) | |
| TEST_F (SegmentTest, SlopeVertical) | |
| TEST_F (SegmentTest, EqualitySameOrder) | |
| TEST_F (SegmentTest, EqualityReversedOrder) | |
| TEST_F (SegmentTest, InequalityDifferentEndpoints) | |
| TEST_F (SegmentTest, IsColinearWith) | |
| TEST_F (SegmentTest, IsToLeftFrom) | |
| TEST_F (SegmentTest, CounterclockwiseAngle) | |
| TEST_F (SegmentTest, CounterclockwiseAngleWith) | |
| TEST_F (SegmentTest, Reversed) | |
| TEST_F (SegmentTest, ProjectPoint) | |
| TEST_F (SegmentTest, DistanceToPoint) | |
| TEST_F (SegmentTest, ParallelSegmentConstructor) | |
| TEST_F (SegmentTest, NegativeCoordinates) | |
| TEST_F (SegmentTest, DegenerateSegment) | |
| TEST_F (SegmentTest, LargeCoordinates) | |
| int | main (int argc, char **argv) |
Tests for the Segment class defined in point.H.
The Segment class in point.H stores copies of Points (not pointers). Note: There is also a separate segment.H file with a pointer-based Segment class, but it's not used by the library.
Definition in file segment_test.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 379 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| CopyConstructor | |||
| ) |
Definition at line 95 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| CounterclockwiseAngle | |||
| ) |
Definition at line 288 of file segment_test.cc.
References Aleph::Segment::counterclockwise_angle(), Aleph::divide_and_conquer_partition_dp(), and Aleph::PI.
| TEST_F | ( | SegmentTest | , |
| CounterclockwiseAngleWith | |||
| ) |
Definition at line 296 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::PI_2.
| TEST_F | ( | SegmentTest | , |
| DefaultConstructor | |||
| ) |
Definition at line 80 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| DegenerateSegment | |||
| ) |
Definition at line 363 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::length().
| TEST_F | ( | SegmentTest | , |
| DistanceToPoint | |||
| ) |
Definition at line 325 of file segment_test.cc.
References Aleph::Segment::distance_to(), and Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| EqualityReversedOrder | |||
| ) |
Definition at line 226 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| EqualitySameOrder | |||
| ) |
Definition at line 218 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| GetEndpoints | |||
| ) |
Definition at line 116 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Segment::get_src_point(), and Aleph::Segment::get_tgt_point().
| TEST_F | ( | SegmentTest | , |
| HighestPoint | |||
| ) |
Definition at line 123 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| InequalityDifferentEndpoints | |||
| ) |
Definition at line 244 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| IsColinearWith | |||
| ) |
Definition at line 256 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::is_colinear_with().
| TEST_F | ( | SegmentTest | , |
| IsToLeftFrom | |||
| ) |
Definition at line 269 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Segment::is_left_of(), and Aleph::Segment::is_right_of().
| TEST_F | ( | SegmentTest | , |
| LargeCoordinates | |||
| ) |
Definition at line 370 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::length().
| TEST_F | ( | SegmentTest | , |
| LeftmostPoint | |||
| ) |
Definition at line 141 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| LowestPoint | |||
| ) |
Definition at line 132 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| MidPoint | |||
| ) |
Definition at line 175 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::mid_point().
| TEST_F | ( | SegmentTest | , |
| MidPointNegative | |||
| ) |
Definition at line 183 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::mid_point().
| TEST_F | ( | SegmentTest | , |
| NegativeCoordinates | |||
| ) |
Definition at line 351 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Segment::length(), and Aleph::Segment::mid_point().
| TEST_F | ( | SegmentTest | , |
| ParallelSegmentConstructor | |||
| ) |
Definition at line 335 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::length().
| TEST_F | ( | SegmentTest | , |
| ProjectPoint | |||
| ) |
Definition at line 314 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::project().
| TEST_F | ( | SegmentTest | , |
| Reversed | |||
| ) |
Definition at line 306 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), r, and Aleph::Segment::reversed().
| TEST_F | ( | SegmentTest | , |
| RightmostPoint | |||
| ) |
Definition at line 150 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST_F | ( | SegmentTest | , |
| Size | |||
| ) |
Definition at line 163 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Segment::length(), and Aleph::vertical.
| TEST_F | ( | SegmentTest | , |
| Slope | |||
| ) |
Definition at line 193 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Segment::slope().
| TEST_F | ( | SegmentTest | , |
| SlopeLengthConstructor | |||
| ) |
Definition at line 103 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Segment::get_tgt_point(), Aleph::Point::get_x(), and Aleph::Point::get_y().
| TEST_F | ( | SegmentTest | , |
| SlopeVertical | |||
| ) |
Definition at line 206 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::vertical.
| TEST_F | ( | SegmentTest | , |
| TwoPointConstructor | |||
| ) |
Definition at line 88 of file segment_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Segment::get_src_point(), and Aleph::Segment::get_tgt_point().