---
title: "intersection(_:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/rect3dfloat/intersection(_:)"
---

# intersection(_:)

Returns the intersection of two rectangles.

## Declaration

```swift
func intersection(_ other: Rect3DFloat) -> Rect3DFloat?
```

## Parameters

- `other`: The second rectangle.

## Discussion

Discussion Returns The intersection of self and other.
