The polygon class Polygon_2 and the polygon algorithms are parameterized with a traits class Traits. The default polygon traits class Polygon_traits_2<R> is parameterized with a representation class R.
#include <CGAL/Polygon_traits_2.h>
|
|
|
| ||
|
||
| ||
|
||
| ||
|
||
| ||
|
||
| ||
|
|
|
| |||
Returns lexicographically_xy_smaller(p,q). | ||||
|
| |||
Returns lexicographically_yx_smaller_or_equal(p,q). | ||||
|
| |||
Returns p.x() * q.y() - q.x() * p.y(). | ||||
|
| |||
Returns cross_product_2(p-q, p-r). | ||||
|
| |||
Returns sign(x). | ||||
|
| |||
Returns is_negative(x). | ||||
|
| |||
Returns do_intersect(Segment_2(p1,q1), Segment_2(p2,q2). | ||||
|
| |||
Returns orientation(p, q, r). | ||||
|
| |||
Returns compare_x(p, q). | ||||
|
| |||
Returns compare_y(p, q). | ||||
|
| |||
Returns the value of the comparison Direction_2<R>(v1) == Direction_2<R>(v2). |