Navigation: Up, Table of Contents, Bibliography, Index, Title Page

CGAL::compare_y_at_x

Comparison_result compare_y_at_x ( Point_2<R> p, Line_2<R> h)
compares the y-coordinates of p and the vertical projection of p on h, see (d) in the figure below.
Precondition: h is not vertical.

Comparison_result
compare_y_at_x ( Point_2<R> p,
Line_2<R> h1,
Line_2<R> h2)
compares the y-coordinates of the vertical projection of p on h1 and on h2, see (e) in the figure below.
Precondition: h1 and h2 are not vertical.

Comparison_result
compare_y_at_x ( Line_2<R> l1,
Line_2<R> l2,
Line_2<R> h)
Let p be the intersection of lines l1 and l2. This function compares the y-coordinates of p and the vertical projection of p on h, see (f) in the figure below.
Precondition: l1, l2 intersect and h is not vertical.

Comparison_result
compare_y_at_x ( Line_2<R> l1,
Line_2<R> l2,
Line_2<R> h1,
Line_2<R> h2)
Let p be the intersection of lines l1 and l2. This function compares the y-coordinates of the vertical projection of p on h1 and on h2, see (g) in the figure below.
Precondition: l1 and l2 intersect; h1 and h2 are not vertical.

Comparison of y at x

See Also

CGAL::compare_xy
CGAL::compare_xyz
CGAL::compare_x
CGAL::compare_x_at_y
CGAL::compare_y
CGAL::compare_yx
CGAL::compare_z


Next: compare_yx
Navigation: Up, Table of Contents, Bibliography, Index, Title Page
www.cgal.org. Aug 13, 2001.