Class BoundingFrustumExtensions
- Namespace
- HelixToolkit.SharpDX
- Assembly
- HelixToolkit.SharpDX.dll
public static class BoundingFrustumExtensions
- Inheritance
-
BoundingFrustumExtensions
- Inherited Members
Methods
Intersects(ref BoundingFrustum, ref BoundingBox)
Intersectses the specified frustum. Simplified from https://github.com/sharpdx/SharpDX/blob/master/Source/SharpDX.Mathematics/BoundingFrustum.cs
public static bool Intersects(ref BoundingFrustum frustum, ref BoundingBox box)
Parameters
frustumBoundingFrustumThe frustum.
boxBoundingBoxThe box.
Returns
Intersects(ref BoundingFrustum, ref BoundingSphere)
public static bool Intersects(ref BoundingFrustum frustum, ref BoundingSphere sphere)
Parameters
frustumBoundingFrustumsphereBoundingSphere
Returns
IsInOrIntersectFrustum(ref BoundingFrustum, ref BoundingBox, ref BoundingSphere)
Intersectses the specified frustum. Return false if either box or sphere is not intersect with the frustum, otherwise return true
public static bool IsInOrIntersectFrustum(ref BoundingFrustum frustum, ref BoundingBox box, ref BoundingSphere sphere)
Parameters
frustumBoundingFrustumThe frustum.
boxBoundingBoxThe box.
sphereBoundingSphereThe sphere.