C4 Engine
C4 Engine API Documentation

Matrix2D::MakeScale

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

static Matrix2D MakeScale(float scale);

static Matrix2D MakeScale(float sx, float sy);

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

Matrix2D::SetIdentity

Matrix2D::Set