Clarify is_polygon_clockwise() coordinate system

The function assumes a normal Cartesian coordinate system.
This commit is contained in:
lawnjelly 2024-05-20 10:16:23 +01:00
parent daa81bbb7d
commit 331ecf3ca8
2 changed files with 3 additions and 0 deletions

View file

@ -116,6 +116,7 @@
<param index="0" name="polygon" type="PackedVector2Array" />
<description>
Returns [code]true[/code] if [param polygon]'s vertices are ordered in clockwise order, otherwise returns [code]false[/code].
[b]Note:[/b] Assumes a Cartesian coordinate system where [code]+x[/code] is right and [code]+y[/code] is up. If using screen coordinates ([code]+y[/code] is down), the result will need to be flipped (i.e. a [code]true[/code] result will indicate counter-clockwise).
</description>
</method>
<method name="line_intersects_line">