|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#include <eepicgeom.H>
Public Member Functions | |
| Dash_Polygon () | |
| Dash_Polygon (const Polygon &p) | |
Public Member Functions inherited from Polygon | |
| Polygon () | |
| Default constructor. Creates an empty, open polygon. | |
| ~Polygon () | |
| Destructor. Frees all vertices. | |
| Polygon (const Polygon &poly) | |
| Copy constructor. | |
| Polygon (Polygon &&poly) noexcept | |
| Move constructor. | |
| Polygon (const Regular_Polygon &poly) | |
| Construct from a Regular_Polygon. | |
| Polygon & | operator= (const Polygon &poly) |
| Copy assignment operator. | |
| Polygon & | operator= (Polygon &&poly) noexcept |
| Move assignment operator. | |
| Polygon & | operator= (const Regular_Polygon &poly) |
| Assignment from a Regular_Polygon. | |
| const Point & | lowest_point () const |
| Get the vertex with the minimum y-coordinate. | |
| const Point & | highest_point () const |
| Get the vertex with the maximum y-coordinate. | |
| const Point & | leftmost_point () const |
| Get the vertex with the minimum x-coordinate. | |
| const Point & | rightmost_point () const |
| Get the vertex with the maximum x-coordinate. | |
| const bool & | is_closed () const |
| Check if the polygon is closed. | |
| const size_t & | size () const |
| Get the number of vertices. | |
| bool | vertex_belong_polygon (const Vertex &v) const |
| Check if a vertex belongs to this polygon. | |
| const Vertex & | get_first_vertex () const |
| Get the first vertex of the polygon. | |
| const Vertex & | get_last_vertex () const |
| Get the last vertex of the polygon. | |
| const Vertex & | get_next_vertex (const Vertex &v) const |
| Get the vertex after the given vertex. | |
| const Vertex & | get_prev_vertex (const Vertex &v) const |
| Get the vertex before the given vertex. | |
| Segment | get_first_segment () |
| Get the first edge (segment) of the polygon. | |
| Segment | get_last_segment () |
| Get the last edge (segment) of the polygon. | |
| bool | intersects_with (const Segment &sg) |
| Check if a segment intersects with any edge of the polygon. | |
| void | add_vertex (const Point &point) |
| Add a vertex to the polygon. | |
| void | add_vertex (const Geom_Number &x, const Geom_Number &y) |
| Add a vertex using coordinates. | |
| void | remove_vertex (const Vertex &v) |
| Remove a vertex from the polygon. | |
| void | close () |
| Close the polygon. | |
| bool | contains_to (const Point &p) |
| Check if a point is inside the polygon. | |
| Polygon (const Triangle &tr) | |
| Construct a polygon from a Triangle. | |
Public Member Functions inherited from Geom_Object | |
| Geom_Object ()=default | |
| virtual | ~Geom_Object ()=default |
Definition at line 1337 of file eepicgeom.H.
|
inline |
Definition at line 1337 of file eepicgeom.H.
Definition at line 1337 of file eepicgeom.H.