|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Dedicated O(1) segment-segment intersection demo. More...
Go to the source code of this file.
Functions | |
| static const char * | kind_str (SegmentSegmentIntersection::Kind kind) |
| static void | print_case (const char *name, const Segment &a, const Segment &b, const SegmentSegmentIntersection::Result &result) |
| int | main () |
Dedicated O(1) segment-segment intersection demo.
Shows the direct 2-segment API (SegmentSegmentIntersection) with exact arithmetic and explicit classification:
Definition in file segment_segment_intersection_example.cc.
|
static |
Definition at line 51 of file segment_segment_intersection_example.cc.
Referenced by print_case().
| int main | ( | ) |
Definition at line 85 of file segment_segment_intersection_example.cc.
References Aleph::divide_and_conquer_partition_dp(), print_case(), and Aleph::segment_segment_intersection().
|
static |
Definition at line 62 of file segment_segment_intersection_example.cc.
References Aleph::Segment::get_src_point(), Aleph::Segment::get_tgt_point(), Aleph::SegmentSegmentIntersection::Result::kind, kind_str(), Aleph::SegmentSegmentIntersection::Result::overlap, Aleph::SegmentSegmentIntersection::Result::point, and Aleph::Point::to_string().
Referenced by main().