Contents

intersects(sphereOrigin:sphereRadius:)

Declaration

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

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

Discussion

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