Sign in to follow this  
terryeverlast

Scaling a point in the center of a frame.

Recommended Posts

terryeverlast    277

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]*[b]*[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
NumberXaero    2624

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
Guest
This topic is now closed to further replies.
Sign in to follow this