---
title: "init(width:height:depth:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/size3d/init(width:height:depth:)-4kscw"
---

# init(width:height:depth:)

Creates a size structure from the specified floating-point values.

## Declaration

```swift
init<T>(width: T, height: T, depth: T) where T : BinaryFloatingPoint
```

## Parameters

- `width`: A floating-point value that specifies the width.
- `height`: A floating-point value that specifies the height.
- `depth`: A floating-point value that specifies the depth.

## See Also

### Creating a 3D size structure

- [init()](spatial/size3d/init().md)
- [init(width:height:depth:)](spatial/size3d/init(width:height:depth:)-4j9bk.md)
- [init(_:)](spatial/size3d/init(_:)-2ibhr.md)
- [init(_:)](spatial/size3d/init(_:)-3y7nr.md)
- [init(vector:)](spatial/size3d/init(vector:).md)
- [init(_:)](spatial/size3d/init(_:)-7kyp0.md)
- [init(_:)](spatial/size3d/init(_:)-6nss1.md)
