![]() |
NDEVR
API Documentation
|
An N-sided polygon. More...
Public Member Functions | |
| void | add (const t_vertex &vertex) |
| Bounds< 2, t_type, t_vertex > | bounds () const |
| LineSegment< 2, t_type, t_vertex > | edge (uint04 index) const |
| uint04 | edgeCount () const |
| void | setVertices (const Buffer< t_vertex > &vertices) |
| const t_vertex & | vertex (uint04 index) const |
| uint04 | vertexCount () const |
| const Buffer< t_vertex > & | vertices () const |
An N-sided polygon.
Class: Polygon
Author: Tyler Parke
Date: 2017-11-19
Definition at line 54 of file Polygon.hpp.
|
inline |
Adds vertex.
Author: Tyler Parke
Date: 2017-11-19
Parameters: vertex - The vertex to add.
Definition at line 295 of file Polygon.hpp.
Referenced by Geometry::polygons().
|
inline |
Gets the bounds.
Author: Tyler Parke
Date: 2017-11-19
Definition at line 131 of file Polygon.hpp.
|
inline |
Edges the given index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the.
Definition at line 176 of file Polygon.hpp.
|
inline |
Edge count.
Author: Tyler Parke
Date: 2017-11-19
Definition at line 221 of file Polygon.hpp.
|
inline |
Sets the vertices.
Author: Tyler Parke
Date: 2017-11-19
Parameters: vertices - The vertices.
Definition at line 274 of file Polygon.hpp.
|
inline |
Vertices the given index.
Author: Tyler Parke
Date: 2017-11-19
Parameters: index - Zero-based index of the.
Definition at line 158 of file Polygon.hpp.
Referenced by ConcavePolygon< t_type, t_vertex >::convexDecomp(), and edge().
|
inline |
Vertex count.
Author: Tyler Parke
Date: 2017-11-19
Definition at line 206 of file Polygon.hpp.
Referenced by ConcavePolygon< t_type, t_vertex >::convexDecomp(), and Geometry::polygons().
|
inline |
Gets the vertices.
Author: Tyler Parke
Date: 2017-11-19
Definition at line 191 of file Polygon.hpp.