<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "USDKit",
  "identifier" : "/documentation/USDKit/USDValue/Matrix4d/init(_:)-6b27q",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "USDKit"
    ],
    "preciseIdentifier" : "s:6USDKit8USDValueV8Matrix4dVyAESo23SPProjectiveTransform3Dacfc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)