#include <peak_icv/types/geometry/peak_icv_polygon.hpp>

Public Member Functions | |
| Polygon () | |
| Creates an empty polygon. | |
| ~Polygon () override | |
| Polygon (const std::vector< peak::common::detail::PointT< PointType > > &points) | |
| Creates a polygon from a set of points. | |
| Polygon (const Polygon &other) | |
| Polygon (Polygon &&other) noexcept | |
| Polygon & | operator= (const Polygon &other) |
| Polygon & | operator= (Polygon &&other) noexcept |
| std::vector< peak::common::detail::PointT< PointType > > | GetPoints () const |
| Provides the points from a polygon. | |
| bool | IsClosed () const |
| Checks if a polygon is closed. A closed polygon contains the same point as first and last point. Returns True if closed, False if open. | |
A polygon is a two-dimensional geometric shape that is made up of a finite number of straight line segments connected end-to-end to form an open or closed figure. A polygon is represented by the points where the line segments meet.
|
inline |
Creates an empty polygon.
|
inlineoverride |
|
inlineexplicit |
Creates a polygon from a set of points.
| points | Vector of points representing the polygon. |
|
inline |
|
inline |
Checks if a polygon is closed. A closed polygon contains the same point as first and last point. Returns True if closed, False if open.
|
inline |
|
inlinenoexcept |