<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/TableVisualState/OrientedRect3D",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit16TableVisualStateV14OrientedRect3DV"
  },
  "title" : "TableVisualState.OrientedRect3D"
}
-->

# TableVisualState.OrientedRect3D

An object that represents the position and orientation of a 3D rectangle.

```
struct OrientedRect3D
```

## Topics

### Creating 3D rectangle states

[`init()`](/documentation/TabletopKit/TableVisualState/OrientedRect3D/init())

[`init(pose: Pose3D, size: Size3D)`](/documentation/TabletopKit/TableVisualState/OrientedRect3D/init(pose:size:))

[`init(rotation: Rotation3D, rect: Rect3D)`](/documentation/TabletopKit/TableVisualState/OrientedRect3D/init(rotation:rect:))

### Getting 3D rectangle properties

[`var pose: Pose3D`](/documentation/TabletopKit/TableVisualState/OrientedRect3D/pose)

The pose of the rectangle.

[`var size: Size3D`](/documentation/TabletopKit/TableVisualState/OrientedRect3D/size)

The size of the rectangle.

### Default Implementations

[Decodable Implementations](/documentation/TabletopKit/TableVisualState/OrientedRect3D/Decodable-Implementations)

[Encodable Implementations](/documentation/TabletopKit/TableVisualState/OrientedRect3D/Encodable-Implementations)

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)