You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been experimenting with the Path functions and encountered a confusing result.
When I run:
canvas.MustParseSVGPath("M0 0H10V10H0z").CCW()
It returns true, even though the given SVG path is clearly drawn in a clockwise direction (considering SVG's coordinate system, where x increases to the right and y increases downwards).
I expected CCW() to return false for this case. Could you help clarify if this is intended behavior or a bug?
Thanks for your time!
The text was updated successfully, but these errors were encountered:
Yes, canvas is in the first Cartesian quadrant coordinate system. That is, the bottom-left is the origin and X and Y increase along the right and towards the top. This is common in math and in general, but drawing coordinate systems are usually in the fourth Cartesian quadrant. This has been a decision from early on since it is confusing to think in the fourth quadrant (for me at least) and well all papers and algorithms are usually focused on the first quadrant.
Hey,
I have been experimenting with the
Path
functions and encountered a confusing result.When I run:
canvas.MustParseSVGPath("M0 0H10V10H0z").CCW()
It returns
true
, even though the given SVG path is clearly drawn in a clockwise direction (considering SVG's coordinate system, where x increases to the right and y increases downwards).I expected
CCW()
to returnfalse
for this case. Could you help clarify if this is intended behavior or a bug?Thanks for your time!
The text was updated successfully, but these errors were encountered: