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

# ClampableWithinRectProtocol Implementations

## Topics

### Instance Methods

[`func clamp(to: Rect3D)`](/documentation/Spatial/Point3D/clamp(to:))

Clamps the mutable point to the specified rectangle.

---

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)