Suppose if i want to do these translations.
-
Translate the rectangle position by x = 10 units.
-
Rotate the rectangle by 35 degree with the center point at the center of the rectangle.
-
Translate the rectangle position by x = 10 units.
-
change the x position of the center point by 10 units( rectangle should not be affected by the change in the center point position)
-
Now rotate the rectangle using the new center point.
If someone could please guide me how do we use Center point in transformations. How do i build by ModelView Matrix if i am using a center Point.