---
title: "index(before:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/jointtransforms/index(before:)"
---

# index(before:)

Returns the position in the sequence of the joint that preceeds the given position.

## Declaration

```swift
func index(before i: JointTransforms.Index) -> JointTransforms.Index
```

## Discussion

Discussion For more on calculating indices, see index(before:).

## See Also

### Accessing joint transforms

- [subscript(_:)](realitykit/jointtransforms/subscript(_:).md)
- [index(after:)](realitykit/jointtransforms/index(after:).md)
