<!--
{
  "documentType" : "article",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Ray3D/Rotatable3DProtocol-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Rotatable3DProtocol Implementations"
}
-->

# Rotatable3DProtocol Implementations

## Topics

### Instance Methods

[`func rotated(by: simd_quatd) -> Ray3D`](/documentation/Spatial/Ray3D/rotated(by:)-81glv)

Returns a ray that results from rotating with the specified quaternion.

[`func rotated(by: Rotation3D) -> Ray3D`](/documentation/Spatial/Ray3D/rotated(by:)-qxp0)

Returns a ray that results from applying the specified rotation.

---

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)