Initializes a transform object with the specified transform matrix.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Model I/O
A transform matrix that defines a local coordinate space relative to a parent coordinate space.
A new transform object.
A transform matrix defines the local coordinate space transformations for a 3D object—that is, its position, orientation, shear, and scale.
After initializing a transform object from a matrix, you can use the
scale properties to individually work with those factors of the transform (or the corresponding methods listed in Using Factors of an Animated Transform to associate time-based transformation with each factor). To work with the complete transform matrix defined by those factors, use the
matrix parameter must be an invertible, homogeneous affine transform matrix. If you initialize a transform object with a nonaffine transform matrix, attempts to retrieve its translation, rotation, shear, or scale factors instead return identity values.