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

# TableVisualState.Point2D

An object that represents a point on the XZ plane.

```
struct Point2D
```

## Topics

### Creating 2D point states

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

[`init(projecting: Point3D)`](/documentation/TabletopKit/TableVisualState/Point2D/init(projecting:))

Initializes this point as the projection of the given 3D point on the XZ plane

[`init(x: Double, z: Double)`](/documentation/TabletopKit/TableVisualState/Point2D/init(x:z:))

### Getting 2D point properties

[`var x: Double`](/documentation/TabletopKit/TableVisualState/Point2D/x)

[`var z: Double`](/documentation/TabletopKit/TableVisualState/Point2D/z)

[`static let zero: TableVisualState.Point2D`](/documentation/TabletopKit/TableVisualState/Point2D/zero)

### Default Implementations

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

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

---

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)