Hi All,
Assuming you have 2 coordinate systems:
A system (A) whereby [0,0,0] (X,Y,Z) specifies the center of the frame, [1,1,0] is the top right corner of the frame and [-1,-1,0] is bottom left corner of the frame. Another system (B) whereby [0,0] is the top left corner of the frame and [1,1] is the bottom right corner of the frame.
How would you convert a (x,y) coordinate from system A to system B? I need to convert this as I will have to pass this to a method to display stuffs in a frame that has a different coordinate.
I thought I'd share this with you guys... hey I am also working on this little arithmetics but anyway who is quicker is willing to post his/her solution.
Thanks
Eric
Assuming you have 2 coordinate systems:
A system (A) whereby [0,0,0] (X,Y,Z) specifies the center of the frame, [1,1,0] is the top right corner of the frame and [-1,-1,0] is bottom left corner of the frame. Another system (B) whereby [0,0] is the top left corner of the frame and [1,1] is the bottom right corner of the frame.
How would you convert a (x,y) coordinate from system A to system B? I need to convert this as I will have to pass this to a method to display stuffs in a frame that has a different coordinate.
I thought I'd share this with you guys... hey I am also working on this little arithmetics but anyway who is quicker is willing to post his/her solution.
Thanks
Eric