SFML community forums
Help => General => Topic started by: nestor on December 12, 2010, 09:29:39 pm
-
Hi, I want to know how to interpret the top, bottom, right, left members of the Rect class.
Are left & up the left-top coordinate and bottom & right the bottom-right coordinate?
If it is like this, Is the bottom-right coordinate absolute or relative to the left-top coordinate?
-
Are left & up the left-top coordinate and bottom & right the bottom-right coordinate?
Obviously yes :lol:
If it is like this, Is the bottom-right coordinate absolute or relative to the left-top coordinate?
Absolute. Relative would be "width" and "height".
-
thanks.
-
By the way: In SFML 2, you have a rect containing Width and Height instead of Right and Bottom.