in some work i'm doing i have a 2D rectangle that can be rotated and/or translated in any direction in 2D space. for example it might look like this:(adsbygoogle = window.adsbygoogle || []).push({});

i would like for that to map to another smaller 2D rectangle that has its origin fixed at the top left corner. such that if i pick some point (P) that's on the larger rectangle i want to map it to the coordinate space of the smaller rectangle:Code (Text):(x=30,y=-10) +-----------+ (x=30,y=2) +-- +y

| | |

| *P | -x

(x=20,y=-10) +-----------+ (x=20,y=2)

not quite sure how to go about setting that up...any thoughts?Code (Text):(x=0,y=0) +-------+ (x=5,y=0) +-- +x

| | |

| *P | +y

(x=0,y=3) +-------+ (x=5,y=3)

TIA

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mapping points inside one 2D rectangle into another smaller one

Loading...

Similar Threads for Mapping points inside |
---|

I External Direct Sums and the Sum of a Family of Mappings ... |

I Linear mapping of a binary vector based on its decimal value |

I Finding the Kernel of a Matrix Map |

**Physics Forums | Science Articles, Homework Help, Discussion**