Function

SCNMatrix4MakeScale

Returns a matrix describing a scale transformation.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
SCNMatrix4 SCNMatrix4MakeScale(float sx, float sy, float sz);
macOS
SCNMatrix4 SCNMatrix4MakeScale(CGFloat sx, CGFloat sy, CGFloat sz);

Parameters

sx

The scale factor in the x-axis direction.

sy

The scale factor in the y-axis direction.

sz

The scale factor in the z-axis direction.

Return Value

A new scale matrix.

See Also

Creating Transform Matrices

SCNMatrix4MakeTranslation

Returns a matrix describing a translation transformation.

SCNMatrix4MakeRotation

Returns a matrix describing a rotation transformation.