Scaling a point in the center of a frame.

Started by
2 comments, last by jbadams 9 years, 2 months ago

2unvsxd.jpg

I came up with using a change of coordinate transformation matrix and scaling matrix with the point.

a = [1,1,0,1] the point 1,1

b = [1 0 0 0,0 1 0 0, 0 0 1 0, 2 2 0 1] the change of coordinate matrix

c = [2 0 0 0, 0 1 0 0, 0 0 1 0, 0 0 0 1] the scaling matrix

[a]**[c]

multiplying those gave me wrong answer

and scales But it doesn't work. What am I doing wrong?

Advertisement

b = [1 0 0 0,0 1 0 0, 0 0 1 0, 2 2 0 1] the change of coordinate matrix

this wont translate the center to the origin, this will translate it further away from the origin.

Follow the Hint part, get the box center....

- move the box center to the origin (0, 0) "change coordinates to the box coordinate system with the origin at the center"

- apply the scale "scale the box"

- undo the move "transform back to the original coordinate system"

sorry. posted in wrong section. now in the math section

Cross-post -- please direct any further responses to the other topic.

- Jason Astle-Adams

This topic is closed to new replies.

Advertisement