<!--
{
  "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/Rotatable3DProtocol",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:7Spatial19Rotatable3DProtocolP"
  },
  "title" : "Rotatable3DProtocol"
}
-->

# Rotatable3DProtocol

A set of methods that defines the interface for Spatial entities that can rotate.

```
protocol Rotatable3DProtocol<Scalar> : SpatialTypeProtocol
```

## Topics

### Operators

[`static func * (Self.Rotation, Self) -> Self`](/documentation/Spatial/Rotatable3DProtocol/*(_:_:))

Returns the `Rotatable3DFloat` entity rotated by the specified rotation.

### Instance Methods

[`func rotate(by: Self.Quaternion)`](/documentation/Spatial/Rotatable3DProtocol/rotate(by:)-66sot)

Rotates the entity rotated by the specified quaternion around the origin.

[`func rotate(by: Self.Rotation)`](/documentation/Spatial/Rotatable3DProtocol/rotate(by:)-7waub)

Rotates the entity rotated by the specified rotation around the origin.

[`func rotated(by: Self.Rotation) -> Self`](/documentation/Spatial/Rotatable3DProtocol/rotated(by:)-3xjsw)

Returns the entity rotated by the specified rotation around the origin.

[`func rotated(by: Self.Quaternion) -> Self`](/documentation/Spatial/Rotatable3DProtocol/rotated(by:)-4mye4)

Returns the entity rotated by the specified quaternion around the origin.

## Relationships

### Inherits From

[`SpatialTypeProtocol`](/documentation/Spatial/SpatialTypeProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

### Conforming Types

[`Rotation3D`](/documentation/Spatial/Rotation3D)

[`Ray3D`](/documentation/Spatial/Ray3D)

[`ScaledPose3DFloat`](/documentation/Spatial/ScaledPose3DFloat)

[`Point3DFloat`](/documentation/Spatial/Point3DFloat)

[`Pose3D`](/documentation/Spatial/Pose3D)

[`Rect3D`](/documentation/Spatial/Rect3D)

[`AffineTransform3D`](/documentation/Spatial/AffineTransform3D)

[`Pose3DFloat`](/documentation/Spatial/Pose3DFloat)

[`Rect3DFloat`](/documentation/Spatial/Rect3DFloat)

[`ProjectiveTransform3D`](/documentation/Spatial/ProjectiveTransform3D)

[`ScaledPose3D`](/documentation/Spatial/ScaledPose3D)

[`ProjectiveTransform3DFloat`](/documentation/Spatial/ProjectiveTransform3DFloat)

[`Size3DFloat`](/documentation/Spatial/Size3DFloat)

[`Rotation3DFloat`](/documentation/Spatial/Rotation3DFloat)

[`Vector3DFloat`](/documentation/Spatial/Vector3DFloat)

[`Size3D`](/documentation/Spatial/Size3D)

[`AffineTransform3DFloat`](/documentation/Spatial/AffineTransform3DFloat)

[`Point3D`](/documentation/Spatial/Point3D)

[`Ray3DFloat`](/documentation/Spatial/Ray3DFloat)

[`Vector3D`](/documentation/Spatial/Vector3D)

### Inherited By

[`Primitive3DProtocol`](/documentation/Spatial/Primitive3DProtocol)

---

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)