Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > Pre-University Math Help > Geometry
Reply
 
Thread Tools Display Modes
  #1  
Old June 30th, 2009, 05:42 PM
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
Advertisement
 
  #2  
Old June 30th, 2009, 08:09 PM
malaygoel's Avatar
Super Member
 
Join Date: May 2006
Location: India
Posts: 640
Country:
Thanks: 38
Thanked 136 Times in 126 Posts
malaygoel has a spectacular aura aboutmalaygoel has a spectacular aura about
Send a message via Yahoo to malaygoel
Default

Quote:
Originally Posted by dsoltyka View Post
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?
Lets say that the original co-ordinates are (a,c),(b,c),(a,d),(b,d)

where in you question a=.38, b=.62, c=.42,d=.58

and, let x,y be the old co-ordinate axes and X,Y be the new co-ordinate axes

then, the transformation equations are
X=\frac{x-a}{b-a}

Y=\frac{y-c}{d-c}
__________________
Keep Smiling
Malay


raah pakad tu ek chala chal, paa jayega madhushala
Reply With Quote
  #3  
Old June 30th, 2009, 09:37 PM
Newbie
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
dsoltyka is on a distinguished road
Default

Forgive my ignorance, but I am unsure how to use those translation formulas to solve my problem.

I'm confused about the numerators of each one. I'm not sure what values to use for the old axis. Can you possibly provide an example of how .38 can become 0 and .62 can become 1? I'd really love to understand this a bit better, thank you.
Reply With Quote
  #4  
Old June 30th, 2009, 09:51 PM
malaygoel's Avatar
Super Member
 
Join Date: May 2006
Location: India
Posts: 640
Country:
Thanks: 38
Thanked 136 Times in 126 Posts
malaygoel has a spectacular aura aboutmalaygoel has a spectacular aura about
Send a message via Yahoo to malaygoel
Default

Quote:
Originally Posted by dsoltyka View Post
Forgive my ignorance, but I am unsure how to use those translation formulas to solve my problem.

I'm confused about the numerators of each one. I'm not sure what values to use for the old axis. Can you possibly provide an example of how .38 can become 0 and .62 can become 1? I'd really love to understand this a bit better, thank you.
the formula I gave

X=\frac{x-a}{b-a}

in your question, a=.38, b=.62

hence formula for this question becomes

X=\frac{x-.38}{.62-.38}

X=\frac{x-.38}{.24}

if x=.38,X=\frac{.38-.38}{.24}...which is zero.

if x=.62,X=\frac{.62-.38}{.24}...which is one.
__________________
Keep Smiling
Malay


raah pakad tu ek chala chal, paa jayega madhushala
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 08:52 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.