#include <composite2.hh>
Public Types | |
typedef const_circular_iter < Polygon2 > | const_circular_iterator |
typedef circular_iter< Polygon2 > | circular_iterator |
Public Member Functions | |
Polygon2 () | |
Polygon2 (const Polygon2 &p) | |
Polygon2 (const std::vector< Vec2 > &v) | |
circular_iterator | cbegin () |
circular_iterator | cend () |
const_circular_iterator | cbegin () const |
const_circular_iterator | cend () const |
void | AddNode (const Vec2 &n) |
unsigned int | GetNodeCount () const |
Vec2 | GetNode (unsigned int i) const |
void | SetNode (unsigned int i, const Vec2 &v) |
circular_iterator | FindSegment (std::vector< Vec2 >::const_iterator start, std::vector< Vec2 >::const_iterator end) |
circular_iterator | FindNode (const Vec2 &v) |
void | Erase (circular_iterator first, circular_iterator last) |
Polygon2 | operator+ (const Vec2 &v) const |
Polygon2 | operator* (Real d) const |
Real | GetArea () const |
Vec2 | GetCentroid () const |
void | Expand (Real val) |
Rectangle2 | GetBoundingBox () const |
Definition at line 65 of file composite2.hh.
typedef circular_iter<Polygon2> circular_iterator |
Definition at line 69 of file composite2.hh.
Definition at line 68 of file composite2.hh.
Polygon2 | ( | ) |
void AddNode | ( | const Vec2 & | n | ) | [inline] |
Definition at line 78 of file composite2.hh.
const_circular_iterator cbegin | ( | ) | const [inline] |
Definition at line 76 of file composite2.hh.
circular_iterator cbegin | ( | ) | [inline] |
Definition at line 74 of file composite2.hh.
const_circular_iterator cend | ( | ) | const [inline] |
Definition at line 77 of file composite2.hh.
circular_iterator cend | ( | ) | [inline] |
Definition at line 75 of file composite2.hh.
void Erase | ( | circular_iterator | first, | |
circular_iterator | last | |||
) |
void Expand | ( | Real | val | ) |
circular_iterator FindNode | ( | const Vec2 & | v | ) | [inline] |
Definition at line 83 of file composite2.hh.
circular_iterator FindSegment | ( | std::vector< Vec2 >::const_iterator | start, | |
std::vector< Vec2 >::const_iterator | end | |||
) |
Real GetArea | ( | ) | const |
Rectangle2 GetBoundingBox | ( | ) | const |
Vec2 GetCentroid | ( | ) | const |
Vec2 GetNode | ( | unsigned int | i | ) | const [inline] |
Definition at line 80 of file composite2.hh.
unsigned int GetNodeCount | ( | ) | const [inline] |
Definition at line 79 of file composite2.hh.
void SetNode | ( | unsigned int | i, | |
const Vec2 & | v | |||
) |