Question about X and Y coordinates for GS and iDevice

Player_EPlayer_E Member, PRO Posts: 604
edited November -1 in Working with GS (Mac)
I was doing some thinking and would like to know how exactly the (X,Y) is set up on both GS and iDevice.

iDevice:
For this I will use iPhone. While holding the iPhone like you would normally do with the home button on the bottom. the (X,Y) are normal. Where the X runs horizontal and Y runs vertical. My question about this is the following.

Do the coordinates (0,0) Start in the middle of the iPhone, or the bottom left corner making the iPhone screen quadrant 1.

In GS:
When creating a new project you are looking at the GS screen display which is an iDevice tilted horizontal. My questions are as followed.

1. Do the coordinates for the iPhone stay the same, so in reality when looking at the GS display with iPhone tilted horizontal Y now runs horizontal and X vertical?

2. In this display do coordinates (0,0) start in bottom left corner, or in middle?

I would check these myself, but I am actually at work atm.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    In GS the (0,0) start bottom left for what ever your orientation is I have no idea if this is the same as far as how the device see's it
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    0,0 is bottom left
    0,320 is top left
    480,0 is bottom left
    480,320 is top right.
    240,160 is middle

    if you are working in portrait mode with the home button at the bottom:

    0,0 is bottom left
    0,480 is top left
    320,0 is bottom right
    320,480 is top right.
    160,240 is middle
  • Player_EPlayer_E Member, PRO Posts: 604
    Thanks for the info guys this will help me in my think tank while I wait to get off work.
Sign In or Register to comment.