---
title: "init(transform:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/scaledpose3dfloat/init(transform:)-1m87a"
---

# init(transform:)

Creates a scaled pose with with a position, rotation, and scale 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, rotation, and scale 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. If the specified  AffineTransform3DFloat doesn’t have uniform scale, the function returns nil.
