---
title: Size3D
framework: spatial
role: symbol
role_heading: Structure
path: spatial/size3d
---

# Size3D

A size that describes width, height, and depth in a 3D coordinate system.

## Declaration

```swift
struct Size3D
```

## Topics

### Creating a 3D size structure

- [init()](spatial/size3d/init().md)
- [init(width:height:depth:)](spatial/size3d/init(width:height:depth:)-4j9bk.md)
- [init(width:height:depth:)](spatial/size3d/init(width:height:depth:)-4kscw.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)

### Inspecting a 3D size’s properties

- [width](spatial/size3d/width.md)
- [height](spatial/size3d/height.md)
- [depth](spatial/size3d/depth.md)
- [size](spatial/size3d/size.md)
- [vector](spatial/size3d/vector.md)

### Transforming a 3D size structure

- [applying(_:)](spatial/size3d/applying(_:)-85mlm.md)
- [applying(_:)](spatial/size3d/applying(_:)-7e2pf.md)
- [applying(_:)](spatial/size3d/applying(_:)-85mlm.md)
- [unapplying(_:)](spatial/size3d/unapplying(_:)-7qam3.md)
- [unapplying(_:)](spatial/size3d/unapplying(_:)-yock.md)
- [unapplying(_:)](spatial/size3d/unapplying(_:)-3ip2e.md)
- [sheared(_:)](spatial/size3d/sheared(_:).md)
- [applying(_:)](spatial/size3d/applying(_:)-7e2pf.md)
- [unapplying(_:)](spatial/size3d/unapplying(_:)-42rsa.md)

### Checking characteristics

- [contains(anyOf:)](spatial/size3d/contains(anyof:).md)

### Creating derived 3D sizes

- [intersection(_:)](spatial/size3d/intersection(_:).md)

### Comparing values

- [==(_:_:)](spatial/size3d/==(_:_:).md)

### 3D size constants

- [one](spatial/size3d/one.md)

### Applying arithmetic operations

- [*(_:_:)](spatial/size3d/*(_:_:)-751dt.md)
- [*(_:_:)](spatial/size3d/*(_:_:)-8zb5j.md)
- [*(_:_:)](spatial/size3d/*(_:_:)-4qpgt.md)
- [*(_:_:)](spatial/size3d/*(_:_:)-52miz.md)
- [*(_:_:)](spatial/size3d/*(_:_:)-5bb1n.md)
- [+(_:_:)](spatial/size3d/+(_:_:).md)
- [-(_:)](spatial/size3d/-(_:).md)
- [-(_:_:)](spatial/size3d/-(_:_:).md)
- [*=(_:_:)](spatial/size3d/*=(_:_:).md)
- [+=(_:_:)](spatial/size3d/+=(_:_:)-75tn3.md)
- [+=(_:_:)](spatial/size3d/+=(_:_:)-7yrej.md)
- [-=(_:_:)](spatial/size3d/-=(_:_:)-8t5kg.md)
- [-=(_:_:)](spatial/size3d/-=(_:_:)-3te52.md)
- [/(_:_:)](spatial/size3d/_(_:_:).md)
- [/=(_:_:)](spatial/size3d/_=(_:_:).md)

### Deprecated symbols

- [simd](spatial/size3d/simd.md)
- [containsAny(of:)](spatial/size3d/containsany(of:).md)

### Initializers

- [init(_:)](spatial/size3d/init(_:)-25dft.md)
- [init(_:)](spatial/size3d/init(_:)-2jfoh.md)

### Default Implementations

- [AdditiveArithmetic Implementations](spatial/size3d/additivearithmetic-implementations.md)
- [CustomReflectable Implementations](spatial/size3d/customreflectable-implementations.md)
- [Decodable Implementations](spatial/size3d/decodable-implementations.md)
- [Encodable Implementations](spatial/size3d/encodable-implementations.md)
- [Equatable Implementations](spatial/size3d/equatable-implementations.md)
- [Hashable Implementations](spatial/size3d/hashable-implementations.md)
- [Primitive3DProtocol Implementations](spatial/size3d/primitive3dprotocol-implementations.md)
- [Scalable3DProtocol Implementations](spatial/size3d/scalable3dprotocol-implementations.md)
- [Shearable3D Implementations](spatial/size3d/shearable3d-implementations.md)
- [Volumetric Implementations](spatial/size3d/volumetric-implementations.md)
- [VolumetricProtocol Implementations](spatial/size3d/volumetricprotocol-implementations.md)

## Relationships

### Conforms To

- [AdditiveArithmetic](swift/additivearithmetic.md)
- [Animatable](swiftui/animatable.md)
- [Copyable](swift/copyable.md)
- [CustomReflectable](swift/customreflectable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Primitive3D](spatial/primitive3d.md)
- [Primitive3DProtocol](spatial/primitive3dprotocol.md)
- [Rotatable3D](spatial/rotatable3d.md)
- [Rotatable3DProtocol](spatial/rotatable3dprotocol.md)
- [Scalable3D](spatial/scalable3d.md)
- [Scalable3DProtocol](spatial/scalable3dprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Shearable3D](spatial/shearable3d.md)
- [SpatialTypeProtocol](spatial/spatialtypeprotocol.md)
- [VectorArithmetic](swiftui/vectorarithmetic.md)
- [Volumetric](spatial/volumetric.md)
- [VolumetricProtocol](spatial/volumetricprotocol.md)

## See Also

### 3D primitives

- [Point3D](spatial/point3d.md)
- [Point3DFloat](spatial/point3dfloat.md)
- [Size3DFloat](spatial/size3dfloat.md)
- [Rect3D](spatial/rect3d.md)
- [Rect3DFloat](spatial/rect3dfloat.md)
- [Rotation3D](spatial/rotation3d.md)
- [Rotation3DFloat](spatial/rotation3dfloat.md)
- [RotationAxis3D](spatial/rotationaxis3d.md)
- [RotationAxis3DFloat](spatial/rotationaxis3dfloat.md)
- [Pose3D](spatial/pose3d.md)
- [Pose3DFloat](spatial/pose3dfloat.md)
- [ScaledPose3D](spatial/scaledpose3d.md)
- [ScaledPose3DFloat](spatial/scaledpose3dfloat.md)
- [SphericalCoordinates3D](spatial/sphericalcoordinates3d.md)
- [SphericalCoordinates3DFloat](spatial/sphericalcoordinates3dfloat.md)
