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

# init(transform:)

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

## Declaration

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

## 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 a projective 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.
