|
bool | kjb::qd::operator== (const RatPoint &a, const RatPoint &b) |
| test equality of two RatPoints, totally unsurprising. More...
|
|
bool | kjb::qd::operator!= (const RatPoint &a, const RatPoint &b) |
| test inequality of two RatPoints. More...
|
|
bool | kjb::qd::operator< (const RatPoint &a, const RatPoint &b) |
| "row-major" ordering of points More...
|
|
bool | kjb::qd::operator<= (const RatPoint &a, const RatPoint &b) |
| "row-major" ordering of points More...
|
|
RatPoint | kjb::qd::operator- (const RatPoint &a, const RatPoint &b) |
| subtraction of RatPoints as if they are position vectors More...
|
|
std::ostream & | kjb::qd::operator<< (std::ostream &s, const RatPoint &p) |
| simple ascii putter More...
|
|
bool | kjb::qd::is_degenerate (const PixPoint_line_segment &s) |
|
bool | kjb::qd::are_parallel (const PixPoint_line_segment &s, const PixPoint_line_segment &t) |
| test whether these segments lie on parallel lines or are collinear. More...
|
|
bool | kjb::qd::is_intersecting (const PixPoint_line_segment &, const PixPoint_line_segment &) |
| Test whether two closed line segments intersect. More...
|
|
template<typename LINE_SEGMENT > |
bool | kjb::qd::are_sharing_a_continuum (const LINE_SEGMENT &s, const LINE_SEGMENT &t) |
| test whether two segments share an infinity of common points More...
|
|
template<typename LINE_SEGMENT > |
bool | kjb::qd::are_sharing_a_continuum (const LINE_SEGMENT &s, const LINE_SEGMENT &t, LINE_SEGMENT *shared_continuum) |
| if 2 closed segs intersect in a line segment, return it and true More...
|
|
bool | kjb::qd::is_degenerate (const RatPoint_line_segment &s) |
|
RatPoint::Rat | kjb::qd::triangle_area (const RatPoint_line_segment &s, const RatPoint &apex) |
| find signed area of triangle defined by segment endpoints and apex. More...
|
|
bool | kjb::qd::is_on (const RatPoint_line_segment &s, const RatPoint &c) |
| test whether a given point lies on a given segment More...
|
|
bool | kjb::qd::is_intersecting (const RatPoint_line_segment &s, const RatPoint_line_segment &t) |
|
bool | kjb::qd::are_parallel (const RatPoint_line_segment &s, const RatPoint_line_segment &t) |
|
RatPoint | kjb::qd::line_intersection (const RatPoint_line_segment &, const RatPoint_line_segment &) |
| find intersection point of nonparallel lines through these segments More...
|
|
bool | kjb::qd::segment_intersection (const RatPoint_line_segment &s, const RatPoint_line_segment &t, RatPoint_line_segment *intersection) |
| if segments intersect, return true and compute intersection More...
|
|
Support for points and line segments with rational coordinates.
- Author
- Andrew Predoehl