View Single Post
  #1  
Old June 30th, 2009, 05:42 PM
dsoltyka dsoltyka is offline
Newbie
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
dsoltyka is on a distinguished road
Default Coordinate system translation

Hello everyone. I'm having trouble with what I believe to be a translation issue. Here is the deal.


Say I have a rectangle in 2D space that is define as follows

(.38,.42) (.62,.42)
________________________
|....................................|
|....................................|
|....................................|
|....................................|
|______________________ |
(.38,.58) (.62,.58)


I need to translate it to this system:

(0,0) (1,0)
________________________
|....................................|
|....................................|
|....................................|
|....................................|
|______________________ |
(0,1) (1,1)


The translation has to be somewhat dynamic such that if the rectangle has different dimensions than those listed above, I can still translate to the system (0,0) - (1,1).

If possible, an algebraic solution for x and y would be even better.

I'm totally stumped here, can anyone assist?
Reply With Quote