Contents

intersects(_:)

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

Declaration

func intersects(_ rect: Rect3D) -> Bool

Parameters

  • rect:

    The rectangle that the function compares against.

Return Value

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

See Also

Checking characteristics