Function

SCNMatrix4Scale(_:_:_:_:)

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

Declaration

iOS, Mac Catalyst, tvOS, watchOS
func SCNMatrix4Scale(_ m: SCNMatrix4, _ sx: Float, _ sy: Float, _ sz: Float) -> SCNMatrix4
macOS
func SCNMatrix4Scale(_ m: SCNMatrix4, _ sx: CGFloat, _ sy: CGFloat, _ sz: CGFloat) -> SCNMatrix4

Parameters

mat

The matrix to be combined with a translation.

x

The scale factor in the x-axis direction.

y

The scale factor in the y-axis direction.

z

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

func SCNMatrix4Translate(SCNMatrix4, Float, Float, Float) -> SCNMatrix4

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

func SCNMatrix4Rotate(SCNMatrix4, Float, Float, Float, Float) -> SCNMatrix4

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

func SCNMatrix4Invert(SCNMatrix4) -> SCNMatrix4

Returns the inverse of the specified matrix.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software