next up previous contents index
Next: Reflect Up: Transformations Previous: Stretch

Scale

  

Scale is just a stretch of equal amounts in the x,y and z directions. Unlike stretch it can not change the shape of the object but only its size.

 object scale(scalefac,object);

The example is shown in figure 3

Example

 brown_cube = scale(0.5,brown_cube);

  figure142
Figure 3: Scaling a cube by a factor of 0.5.



Sophie Day
Fri Feb 20 15:47:19 NZDT 1998