In: Computer Science
Making the synthesis Matrix that enlarges double size the Target object in same position. The object is placed at (2, 2, 2) initially. Double size means that 1cm size object is enlarged into 2cm & same shape object.
Hint: Use three matrixes.
Solution:
For Understanding
To solve above problem we do series of operation so that initial position can be preserved.
Firstly we should select a pivot point
let 1,1 be pivot element for the given example
1st operation: Translate to Origin (0,0)
2nd operation: Scale up
3rd operation: Translate to Initial Position