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

#include <eepicgeom.H>

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

Public Member Functions

 Dash_Regular_Polygon ()
 
 Dash_Regular_Polygon (const Regular_Polygon &p)
 
 Dash_Regular_Polygon (const Point &c, const double &side_sz, const size_t &n, const double &ang=0)
 
- Public Member Functions inherited from Regular_Polygon
 Regular_Polygon ()
 Default constructor. Creates an invalid empty polygon.
 
 Regular_Polygon (const Point &c, const double &side_sz, const size_t &n, const double &ang=0)
 Construct a regular polygon.
 
const doubleget_side_size () const
 Get the side length.
 
const Pointget_center () const
 Get the center point.
 
const size_tsize () const
 Get the number of vertices.
 
const doubleradius () const
 Get the circumradius.
 
bool is_closed () const
 Check if the polygon is closed.
 
const Point get_vertex (const size_t &i) const
 Get the i-th vertex of the polygon.
 
const Point get_first_vertex () const
 Get the first vertex (index 0).
 
const Point get_last_vertex () const
 Get the last vertex (index size()-1).
 
Segment get_first_segment () const
 Get the first segment (edge).
 
Segment get_last_segment () const
 Get the last segment (closing edge).
 
Point lowest_point () const
 Get the lowest point of the bounding circle.
 
Point highest_point () const
 Get the highest point of the bounding circle.
 
Point leftmost_point () const
 Get the leftmost point of the bounding circle.
 
Point rightmost_point () const
 Get the rightmost point of the bounding circle.
 
- Public Member Functions inherited from Geom_Object
 Geom_Object ()=default
 
virtual ~Geom_Object ()=default
 

Detailed Description

Definition at line 1470 of file eepicgeom.H.

Constructor & Destructor Documentation

◆ Dash_Regular_Polygon() [1/3]

Dash_Regular_Polygon::Dash_Regular_Polygon ( )
inline

Definition at line 1470 of file eepicgeom.H.

◆ Dash_Regular_Polygon() [2/3]

Dash_Regular_Polygon::Dash_Regular_Polygon ( const Regular_Polygon p)
inline

Definition at line 1470 of file eepicgeom.H.

◆ Dash_Regular_Polygon() [3/3]

Dash_Regular_Polygon::Dash_Regular_Polygon ( const Point c,
const double side_sz,
const size_t n,
const double ang = 0 
)
inline

Definition at line 1470 of file eepicgeom.H.


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