SCALING


Scaling an object in three-dimensional is similar to scaling an object in two-dimensional. Similar to 2D scaling an object tends to change its size and repositions the object relative to the coordinate origin. If the transformation parameter are unequal it leads to deformation of the object by changing its dimensions. The perform uniform scaling the scaling factors should be kept equal

i.e.

Where,

NOTE: A special case of scaling can be represented as reflection.

if the value of Sx, Sy or Sz be replaced by -1 it will return the reflection of the object against the standard plane whose normal would be either x axis, y axis or z axis respectively.

The standard matrix can be seen by clicking here