<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/ProjectiveTransform3DFloat/rotation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So28SPProjectiveTransform3DFloata7SpatialE8rotationSo011SPRotation3C0aSgvp"
  },
  "title" : "rotation"
}
-->

# rotation

The projective transform’s rotation.

```
var rotation: Rotation3DFloat? { get }
```

## Discussion

This function computes the rotation from the first three rows of the transform matrix and ignores the fourth row.
This function can’t extract rotation from a non-scale-rotate-translate projective transform. In that case,
the function returns `nil`.

---

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)