Contents

init(_:)

Creates a matrix from a Spatial projective transform (double-precision).

Declaration

init(_ projectiveTransform: ProjectiveTransform3D)

Discussion

ProjectiveTransform3D is column-major and treats vectors as column vectors; Matrix4d is row-major and treats vectors as row vectors. The in-memory layout is identical, so this initializer reads each m[col, row] element and lays it out row-major.