|
| Polygon () |
|
| Polygon (const Polygon &polygon) |
|
| Polygon (Polygon &&polygon) noexcept |
|
| Polygon (Buffer< t_vertex > &vertices) |
|
| Polygon (const Buffer< Vertex< 3, fltp08 > > &points) |
|
| Polygon (uint04 allocated_size) |
|
Bounds< 2, t_type, t_vertex > | bounds () const |
|
const t_vertex & | vertex (uint04 index) const |
|
LineSegment< 2, t_type, t_vertex > | edge (uint04 index) const |
|
const Buffer< t_vertex > & | vertices () const |
|
uint04 | vertexCount () const |
|
uint04 | edgeCount () const |
|
bool | isConvex () const |
|
void | setVertices (const Buffer< t_vertex > &vertices) |
|
void | addVertices (const t_vertex *vertices, uint04 size) |
|
void | add (const t_vertex &vertex) |
|
void | insert (uint04 index, const t_vertex &vertex) |
|
void | replace (uint04 index, const t_vertex &vector) |
|
void | simplify () |
|
void | flip () |
|
void | remove (uint04 index) |
|
void | clear () |
|
template<class t_new_type , class t_new_vertex_type = Vertex<2, t_new_type>> |
Polygon< t_new_type, t_new_vertex_type > | as () const |
|
t_type | perimeter () const |
|
bool | contains (const Vertex< 2, t_type > &vector) const |
|
template<class t_precision > |
IntersectionTypes | contains (const LineSegment< 2, t_type, t_vertex > &line) const |
|
template<class t_precision > |
IntersectionTypes | contains (const Bounds< 2, t_type, t_vertex > &o_bounds) const |
|
decltype(auto) | begin () |
|
decltype(auto) | begin () const |
|
decltype(auto) | begin (uint04 index) const |
|
decltype(auto) | begin (uint04 index) |
|
decltype(auto) | end () |
|
decltype(auto) | end () const |
|
template<class t_precision > |
IntersectionTypes | contains (const Triangle< 2, t_type, t_vertex > &tri) const |
|
template<class t_precision , class t_other_vertex > |
IntersectionTypes | contains (const Polygon< t_type, t_other_vertex > &poly) const |
|
Polygon | clip (const Bounds< t_vertex::NumberOfDimensions(), t_type > &bounds) const |
|
Plane< 3, t_type > | plane () const |
|
void | setPlane (const Plane< 3, t_type > &plane) |
|
bool | hasClockwiseWinding () const |
|
bool | operator== (const Polygon &polygon) const |
|
bool | operator!= (const Polygon &polygon) const |
|
bool | isEquivalent (const Polygon &polygon, fltp08 epsilon) |
|
Polygon | opheimSimplification (t_type min_tol, t_type max_tol) const |
|
Polygon & | operator= (const Polygon &poly) |
|
Polygon & | operator= (Polygon &&poly) |
|
bool | validate () const |
|
template<class t_type, class t_vertex = Vertex<2, t_type>>
class NDEVR::Polygon< t_type, t_vertex >
An N-sided polygon.
Class: Polygon
Author: Tyler Parke
Date: 2017-11-19
template<class t_type , class t_vertex = Vertex<2, t_type>>
template<class t_new_type , class t_new_vertex_type = Vertex<2, t_new_type>>
Polygon< t_new_type, t_new_vertex_type > as |
( |
| ) |
const |
|
inline |
Fn: Polygon<t_new_type, t_new_vertex_type> Polygon::as() const
Gets as.
Author: Tyler Parke
Date: 2017-11-19
Returns: A Polygon<t_new_type,t_new_vertex_type>
template<class t_type , class t_vertex = Vertex<2, t_type>>
template<class t_precision >
template<class t_type , class t_vertex = Vertex<2, t_type>>
template<class t_precision >
template<class t_type , class t_vertex = Vertex<2, t_type>>
bool contains |
( |
const Vertex< 2, t_type > & | vector | ) |
const |
|
inline |
Fn: bool Polygon::contains(const t_vertex& vector) const
Query if this object contains the given vector.
Author: Tyler Parke
Date: 2017-11-19
Parameters: vector - The const t_vertex& to test for containment.
Returns: True if the object is in this collection, false if not.