---
title: rotation
framework: spatial
role: symbol
role_heading: Instance Property
path: spatial/projectivetransform3dfloat/rotation
---

# rotation

The projective transform’s rotation.

## Declaration

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

## Discussion

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.
