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

# intersects(_:)

Returns a Boolean value that indicates whether a ray intersects a rectangle.

## Declaration

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

## Parameters

- `rect`: The rectangle that the function compares against.

## Return Value

Return Value A Boolean value that indicates whether the ray intersects the rectangle.

## See Also

### Checking characteristics

- [isFinite](spatial/ray3d/isfinite.md)
- [isNaN](spatial/ray3d/isnan.md)
- [isZero](spatial/ray3d/iszero.md)
- [intersects(sphereOrigin:sphereRadius:)](spatial/ray3d/intersects(sphereorigin:sphereradius:).md)
