<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Volumetric",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:7Spatial10VolumetricP"
  },
  "title" : "Volumetric"
}
-->

# Volumetric

A set of methods for working with Spatial primitives with volume.

```
protocol Volumetric
```

## Topics

### Instance properties

[`var size: Size3D`](/documentation/Spatial/Volumetric/size)

The size of the volume.

### Instance methods

[`func contains(Self) -> Bool`](/documentation/Spatial/Volumetric/contains(_:))

Returns a Boolean value that indicates whether the entity contains the specified volumetric entity.

[`func contains(point: Point3D) -> Bool`](/documentation/Spatial/Volumetric/contains(point:))

Returns a Boolean value that indicates whether this volume contains the specified point.

[`func contains(anyOf: [Point3D]) -> Bool`](/documentation/Spatial/Volumetric/contains(anyOf:))

Returns a Boolean value that indicates whether this volume contains any of the specified points.

[`func formIntersection(Self)`](/documentation/Spatial/Volumetric/formIntersection(_:))

Sets the primitive to the intersection of itself and the specified primitive.

[`func formUnion(Self)`](/documentation/Spatial/Volumetric/formUnion(_:))

Sets the primitive to the union of itself and the specified primitive.

[`func intersection(Self) -> Self?`](/documentation/Spatial/Volumetric/intersection(_:))

Returns the intersection of two volumetric entities.

[`func union(Self) -> Self`](/documentation/Spatial/Volumetric/union(_:))

Returns the smallest volumetric entity that contains the two source entities.

### Deprecated methods

[`func containsAny(of: [Point3D]) -> Bool`](/documentation/Spatial/Volumetric/containsAny(of:))

Returns a Boolean value that indicates whether this volume contains any of the specified points.

## Relationships

### Conforming Types

[`Rect3D`](/documentation/Spatial/Rect3D)

[`Size3D`](/documentation/Spatial/Size3D)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)