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

# swing(twistAxis:)

## Declaration

```swift
func swing(twistAxis: RotationAxis3DFloat) -> Rotation3DFloat
```

## Parameters

- `twistAxis`: The twist axis.

## Return Value

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

## Discussion

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