Catatan 2
Catatan 2
Scalings are stretchings of the object, about the origin. The scaling matrix S is:
Rotations about the origin by an angle are defined by the rotation matrix R which is
given by:
Composition of transformations
One of the big advantages of homogeneous coordinates is that transformations can
be very easily combined. All that is required is multiplication of the transformation
matrices. This makes otherwise complex transformations very easy to compute. For
instance if we wanted to rotate an object about some point, p, on (or in) that object,
this can easily be achieved by:
1. translate object by -p,
2. rotate object by angle ,
3. translate object by p.
This can be written as:
Often the clipping of visible elements will be carried out at the same time as the
transformation is applied.Typically the region will be clipped in world coordinates and
then transformed.
Inverse transformations
Since M is a matrix representing transformations this inverse matrix will exist
(because a general transformation matrix is non-singular). The matrix inverse is
defined so that MM-1 = I where I is the 3 x 3 identity matrix,
For most transformations is is quite obvious, from rst principles what the inverse
transformations are, for instance the translation matrix has inv[erse:
Transformation