Contents

SCNMatrix4Scale(_:_:_:_:)

Returns a new matrix created by concatenating the specified matrix with a scale transformation.

Declaration

func SCNMatrix4Scale(_ m: SCNMatrix4, _ sx: Float, _ sy: Float, _ sz: Float) -> SCNMatrix4
func SCNMatrix4Scale(_ m: SCNMatrix4, _ sx: CGFloat, _ sy: CGFloat, _ sz: CGFloat) -> SCNMatrix4

Parameters

  • m:

    The matrix to be combined with a translation.

  • 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 matrix.

Discussion

The resulting transformation consists of the specified scale followed by the transformation represented by the mat parameter.

See Also

Performing Matrix Operations