---
title: "encode(to:)"
framework: tabletopkit
role: symbol
role_heading: Instance Method
path: "tabletopkit/tablevisualstate/orientedrect3d/encode(to:)"
---

# encode(to:)

Encodes this value into the given encoder.

## Declaration

```swift
func encode(to encoder: any Encoder) throws
```

## Parameters

- `encoder`: The encoder to write data to.
