![]() |
IDS peak ICV v1.2.0
|
#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.
Definition at line 109 of file peak_icv_type_traits.hpp.
|
inline |
Creates an empty polygon.
Definition at line 122 of file peak_icv_polygon.hpp.
|
inlineoverride |
Definition at line 171 of file peak_icv_polygon.hpp.
|
inlineexplicit |
Creates a polygon from a set of points.
| points | Vector of points representing the polygon. |
Definition at line 130 of file peak_icv_polygon.hpp.
Definition at line 149 of file peak_icv_polygon.hpp.
Definition at line 161 of file peak_icv_polygon.hpp.
|
inline |
Provides the points from a polygon.
Definition at line 215 of file peak_icv_polygon.hpp.
|
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.
Definition at line 241 of file peak_icv_polygon.hpp.
|
inline |
Definition at line 177 of file peak_icv_polygon.hpp.
|
inlinenoexcept |
Definition at line 197 of file peak_icv_polygon.hpp.