13.016 Introduction to Geometric Modeling and Computation
Translation
glTranslate{fd}(a, b, c);
C' = CT
where
T = 1 0 0 a 0 1 0 b 0 0 1 c 0 0 0 1
(x+a, y+b, z+c, 1) = T (x, y, z, 1)
Scaling
glScale{fd}(a, b, c);
C' = CS
where
S = a 0 0 0 0 b 0 0 0 0 c 0 0 0 0 1
(xa, yb, zc, 1) = S (x, y, z, 1)
Note that scaling is performed relative to the origin of the current coordinate system.
On to rotation
Back to matrix manipulation...
Back to the overview...