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.