Clarify is_polygon_clockwise() coordinate system
The function assumes a normal Cartesian coordinate system.
This commit is contained in:
parent
daa81bbb7d
commit
331ecf3ca8
2 changed files with 3 additions and 0 deletions
|
|
@ -350,6 +350,8 @@ public:
|
|||
return triangles;
|
||||
}
|
||||
|
||||
// Assumes cartesian coordinate system with +x to the right, +y up.
|
||||
// If using screen coordinates (+x to the right, +y down) the result will need to be flipped.
|
||||
static bool is_polygon_clockwise(const Vector<Vector2> &p_polygon) {
|
||||
int c = p_polygon.size();
|
||||
if (c < 3) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue