Instance Method

initWithTransformComponent:

Initializes a transform object to match the specified transform component.

Declaration

- (instancetype)initWithTransformComponent:(id<MDLTransformComponent>)component;

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

- initWithIdentity

Initializes a transform object to the identity transformation.

Deprecated
- initWithMatrix:

Initializes a transform object with the specified transform matrix.