示例#1
0
void Polygon::ensureCWOrder() {
	if (!isCW())
		reverseVertexOrder();
}
示例#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;
}