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
- frustum
Type: BoundingFrustum
The BoundingFrustum to check for intersection with the Ray.
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