---
title: "changeBasis(from:to:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/affinetransform3dfloat/changebasis(from:to:)"
---

# changeBasis(from:to:)

Returns a new affine transform structure by applying a change-of-basis.

## Declaration

```swift
func changeBasis(from: AffineTransform3DFloat = .identity, to: AffineTransform3DFloat) -> AffineTransform3DFloat?
```

## Parameters

- `from`: The old basis.
- `to`: The new basis.

## Return Value

Return Value A new affine transform structure.
