---
title: "intersects(sphereOrigin:sphereRadius:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/ray3dfloat/intersects(sphereorigin:sphereradius:)"
---

# intersects(sphereOrigin:sphereRadius:)

## Declaration

```swift
func intersects(sphereOrigin: Point3DFloat, sphereRadius: Float) -> Bool
```

## Parameters

- `sphereOrigin`: A point structure that defines the center of the sphere.
- `sphereRadius`: The radius of the sphere.

## Return Value

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

## Discussion

Discussion Returns a Boolean value that indicates whether the ray intersects a specified sphere.
