1
\$\begingroup\$

I'm currently trying to transform a system by scaling it on x and y axis and have some uncertainty. I have the general concept that scaling works as such:

My original box has corners at (0, 0) and (3, 2) and I'm asked to scale the x axis by 3 and the y axis by -2.

Is this what the correct solution would look like (with corners at (0,2) and (6,-2))?

\$\endgroup\$
2
\$\begingroup\$

Given the points you have, no. The new rectangle will be defined by the points (0, 0) and (6, -4). The point on the origin will not scale to a new position where are the other point you have will. Scaling by -2 in the y will flip the rectangle so instead of having a point in the bottom left and top right it will now be in the top left and bottom right.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ Got it. Is this what it would look like? \$\endgroup\$ – Kermit Mar 30 '13 at 18:06
  • \$\begingroup\$ Yes it is. Best is to remember that scaling will move things away (or if less than 0 then towards) the origin. Since a point is already at the origin it will stay there. \$\endgroup\$ – CodeNeko Mar 30 '13 at 18:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.