• Advertisement
Sign in to follow this  

Scaling a point in the center of a frame.

This topic is 1120 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Edited by terryeverlast

Share this post


Link to post
Share on other sites
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"

Share this post


Link to post
Share on other sites

This topic is 1120 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement