C4 Engine
C4 Engine API Documentation

Matrix3D::MakeScale

Defined in:  TSMatrix3D.h
Returns a matrix that represents a scale.
Prototype

static Matrix3D MakeScale(float scale);

static Matrix3D MakeScale(float sx, float sy, float sz);

Parameters
scale The scale along all three axes.
sx The scale along the x axis.
sy The scale along the y axis.
sz The scale along the z axis.
Description
The MakeScale function returns a matrix representing a scale. If only the scale parameter is specified, then the scale is uniform along all three axes. If the sx, sy, and sz parameters are specified, then they correspond to the scale along the x, y, and z axis, respectively.
See Also

Matrix3D::SetIdentity

Matrix3D::Set