BoundingSphere.Contains Method (BoundingFrustum)
Checks whether the current BoundingSphere contains the specified BoundingFrustum.
Syntax
'Declaration
Public Function Contains ( _
frustum As BoundingFrustum _
) As ContainmentType
public ContainmentType Contains (
BoundingFrustum frustum
)
public:
ContainmentType Contains(
BoundingFrustum frustum
)
Parameters
- frustum
Type: BoundingFrustum
The BoundingFrustum to check against the current BoundingSphere.
Return Value
Type: ContainmentType
An enumeration indicating the relationship of the specified BoundingFrustum to the current BoundingSphere.
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
BoundingSphere Structure
BoundingSphere Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone