---
title: "init(transform:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/pose3dfloat/init(transform:)-7bffd"
---

# init(transform:)

Creates a pose with with a position and rotation that are defined by an affine transform.

## Declaration

```swift
init?(transform: AffineTransform3DFloat)
```

## Parameters

- `transform`: The source transform. The function only considers the transform’s rotation and translation components.

## Return Value

Return Value A pose with a position and rotation that are defined by an affine transform.

## Discussion

Discussion note: This function can’t extract rotation from a non-scale-rotate-translate affine transform. In that case, the function returns nil.
