Sdílet prostřednictvím


Ray.Intersects Method (BoundingFrustum)

Checks whether the Ray intersects a specified BoundingFrustum.

Syntax

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

Parameters

Return Value

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

Exceptions

Exception type Condition
ArgumentNullException frustum is null.

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

Ray Structure
Ray Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone