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

# intersects(_:)

Returns true if the the ray intersects the specified rectangle.

## Declaration

```swift
func intersects(_ rect: Rect3DFloat) -> Bool
```

## Parameters

- `rect`: The second primitive.
