Share via


BoundingFrustum.Intersects Method (Ray)

Checks whether the current BoundingFrustum intersects the specified Ray.

Syntax

'Declaration
Public Function Intersects ( _
         ray As Ray _
) As Nullable(Of Single) 
public Nullable<float> Intersects (
         Ray ray
)
public:
Nullable<float> Intersects(
         Ray ray
)

Parameters

  • ray
    Type: Ray
    The Ray to check for intersection.

Return Value

Type: Nullable<Single>
Distance at which the ray intersects the BoundingFrustum or null if there is no intersection.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

BoundingFrustum Class
BoundingFrustum Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone