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

# TableVisualState.Pose2D

An object that represents a 2D position and orientation on the XZ plane.

```
struct Pose2D
```

## Topics

### Creating 2D pose objects

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

[`init(position: TableVisualState.Point2D, rotation: Angle2D)`](/documentation/TabletopKit/TableVisualState/Pose2D/init(position:rotation:))

[`init(projecting: Pose3D)`](/documentation/TabletopKit/TableVisualState/Pose2D/init(projecting:))

Initializes this pose as the 2D projection of the given pose on the XZ plane

### Getting 2D pose properties

[`var position: TableVisualState.Point2D`](/documentation/TabletopKit/TableVisualState/Pose2D/position)

[`var rotation: Angle2D`](/documentation/TabletopKit/TableVisualState/Pose2D/rotation)

### Getting the identifier

[`static var identity: TableVisualState.Pose2D`](/documentation/TabletopKit/TableVisualState/Pose2D/identity)

The identity pose

### Default Implementations

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

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

---

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)