Click or drag to resize
Ab4d.SharpEngine logo

BoundingFrustumIntersects(Ray, NullableSingle, NullableSingle) Method

Checks whether the current BoundingFrustum intersects the specified Ray.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public bool Intersects(
	Ray ray,
	out float? inDistance,
	out float? outDistance
)

Parameters

ray  Ray
The Ray to check for intersection with.
inDistance  NullableSingle
The distance at which the ray enters the frustum if there is an intersection and the ray starts outside the frustum.
outDistance  NullableSingle
The distance at which the ray exits the frustum if there is an intersection.

Return Value

Boolean
true if the current BoundingFrustum intersects the specified Ray.
See Also