| 295 | } |
| 296 | |
| 297 | PolygonSegment Polygon::getSegment(const point_index_t segment) |
| 298 | { |
| 299 | point_index_t p2 = segment + 1; |
| 300 | if (segment == m_points.size() - 1) |
| 301 | p2 = 0; |
| 302 | return PolygonSegment(this->get(segment), this->get(p2)); |
| 303 | } |
| 304 | |
| 305 | UnitVector Polygon::getPosition() const |
| 306 | { |
no test coverage detected