Initializer

init(transformComponent:)

Initializes a transform object to match the specified transform component.

Declaration

convenience init(transformComponent component: MDLTransformComponent)

Parameters

component

The component whose transform information is to be copied.

Return Value

A new transform object.

Discussion

Use this method to copy transformation from any object that adopts the MDLTransformComponent protocol (such as another MDLTransform instance).

See Also

Creating a Transform Object

init(identity: ())

Initializes a transform object to the identity transformation.

Deprecated
init(matrix: matrix_float4x4)

Initializes a transform object with the specified transform 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