DecomposedTransform

struct DecomposedTransform
extension matrix_float4x4.DecomposedTransform: Interpolatable

A type to break down a matrix_float4x4 into its specific transformation attributes / properties (i.e. scale, translation, etc.).

Instantiate this using: matrix_float4x4.decomposed().

Note

Under the hood this does a conversion to represent its contents as matrix_double4x4 which could be expensive when done frequently.
  • The translation of a transformation matrix.

    Declaration

    Swift

    public var translation: simd_float3
  • The scale of a transformation matrix.

    Declaration

    Swift

    public var scale: simd_float3
  • The rotation of a transformation matrix (expressed as a quaternion).

    Declaration

    Swift

    public var rotation: simd_quatf
  • The rotation of a transformation matrix (expressed as euler angles).

    Declaration

    Swift

    public var eulerAngles: simd_float3 { get set }
  • The shearing of a transformation matrix.

    Declaration

    Swift

    public var skew: simd_float3
  • The perspective of a transformation matrix (e.g. .m34).

    Declaration

    Swift

    public var perspective: simd_float4
  • Merges all the properties of the the decomposed transform into a matrix_float4x4 transform.

    Declaration

    Swift

    public func recomposed() -> matrix_float4x4

DecomposedTransform

  • Declaration

    Swift

    public func lerp(to: `Self`, fraction: Float) -> simd_float4x4.DecomposedTransform