Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Dash_Polygon Struct Reference

#include <eepicgeom.H>

Inheritance diagram for Dash_Polygon:
[legend]
Collaboration diagram for Dash_Polygon:
[legend]

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.
 
Polygonoperator= (const Polygon &poly)
 Copy assignment operator.
 
Polygonoperator= (Polygon &&poly) noexcept
 Move assignment operator.
 
Polygonoperator= (const Regular_Polygon &poly)
 Assignment from a Regular_Polygon.
 
const Pointlowest_point () const
 Get the vertex with the minimum y-coordinate.
 
const Pointhighest_point () const
 Get the vertex with the maximum y-coordinate.
 
const Pointleftmost_point () const
 Get the vertex with the minimum x-coordinate.
 
const Pointrightmost_point () const
 Get the vertex with the maximum x-coordinate.
 
const boolis_closed () const
 Check if the polygon is closed.
 
const size_tsize () const
 Get the number of vertices.
 
bool vertex_belong_polygon (const Vertex &v) const
 Check if a vertex belongs to this polygon.
 
const Vertexget_first_vertex () const
 Get the first vertex of the polygon.
 
const Vertexget_last_vertex () const
 Get the last vertex of the polygon.
 
const Vertexget_next_vertex (const Vertex &v) const
 Get the vertex after the given vertex.
 
const Vertexget_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
 

Detailed Description

Definition at line 1337 of file eepicgeom.H.

Constructor & Destructor Documentation

◆ Dash_Polygon() [1/2]

Dash_Polygon::Dash_Polygon ( )
inline

Definition at line 1337 of file eepicgeom.H.

◆ Dash_Polygon() [2/2]

Dash_Polygon::Dash_Polygon ( const Polygon p)
inline

Definition at line 1337 of file eepicgeom.H.


The documentation for this struct was generated from the following file: