1
General / Don't understand after call method: SetCenter(x, y)
« on: March 28, 2011, 05:16:54 am »
Hello all,
I don't understand a issue about what is changed after calling method: SetCenter(float x, float y) of Rect shape.
For example:
I declare a: Rect(0,0, 100, 100)
Then I call: SetCenter(50,50)
Why:
Now I move: -50, -50 from topleft position as below image:
Thanks in advanced.
I don't understand a issue about what is changed after calling method: SetCenter(float x, float y) of Rect shape.
For example:
I declare a: Rect(0,0, 100, 100)
Then I call: SetCenter(50,50)
Why:
Now I move: -50, -50 from topleft position as below image:
Thanks in advanced.