---
title: "swing(twistAxis:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/rotation3d/swing(twistaxis:)"
---

# swing(twistAxis:)

Returns the swing component of the rotation’s swing-twist decomposition for a given twist axis.

## Declaration

```swift
func swing(twistAxis: RotationAxis3D) -> Rotation3D
```

## Parameters

- `twistAxis`: The twist axis.

## Return Value

Return Value The swing component of the rotation’s swing-twist decomposition for a given twist axis.

## See Also

### Decomposing a 3D rotation structure

- [twist(twistAxis:)](spatial/rotation3d/twist(twistaxis:).md)
- [swingTwist(twistAxis:)](spatial/rotation3d/swingtwist(twistaxis:).md)
- [twist(twistAxis:)](spatial/rotation3d/twist(twistaxis:).md)
