Exemple #1
0
void Polygon::ensureCWOrder() {
	if (!isCW())
		reverseVertexOrder();
}
Exemple #2
0
Polygon Polygon::ccw() const {
    Polygon ccw(size());
    if(isCW()) std::reverse_copy(begin(), end(), ccw.begin());
    else std::copy(begin(), end(), ccw.begin());
    return ccw;
}