Replies: 3 comments 1 reply
-
|
And one more comment: |
Beta Was this translation helpful? Give feedback.
-
|
I'm not persuaded that this is an issue, nor do I understand you followup question. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In struct rRect:
Rect() :
left(0),
top(0),
right(0),
bottom(0) {}
top is top coordinate, so it need be bigger than bottom coordinate, only if we not in screen coordinates, where axis y is reversal to normal axis y.
All work, but need to swap in Rect init bottom and top coordinates.
Thanks for attention.
Post remark:
I found in closed issues your comment:
Well that depends on your graphics display. In Cartesian coordinates you're absolutely correct. But in many graphics display libraries, including those I've used in developing this library, they invert the Y axis so that values increasing from 0 as you move DOWN the Y axis. In other words, rather than the origin (0,0) being bottom left, the origin is top left.
But I think it need to add some words about that on your site in Coordinate Range.
Because it not often use reverse y in 2d engines and libs.
Or add some small functions or flags that invert y Axis, but also need to now screen size minimum by axis y.
Beta Was this translation helpful? Give feedback.
All reactions