BoundingSphere.CreateFromFrustum Method
Creates the smallest BoundingSphere that can contain a specified BoundingFrustum.
Syntax
'Declaration
Public Shared Function CreateFromFrustum ( _
frustum As BoundingFrustum _
) As BoundingSphere
public static BoundingSphere CreateFromFrustum (
BoundingFrustum frustum
)
public:
static BoundingSphere CreateFromFrustum(
BoundingFrustum frustum
)
Parameters
- frustum
Type: BoundingFrustum
The BoundingFrustum to create the BoundingSphere with.
Return Value
Type: BoundingSphere
The created 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