BoundingBox.CreateFromSphere Method (BoundingSphere)
Creates the smallest BoundingBox that will contain the specified BoundingSphere.
Syntax
'Declaration
Public Shared Function CreateFromSphere ( _
sphere As BoundingSphere _
) As BoundingBox
public static BoundingBox CreateFromSphere (
BoundingSphere sphere
)
public:
static BoundingBox CreateFromSphere(
BoundingSphere sphere
)
Parameters
- sphere
Type: BoundingSphere
The BoundingSphere to contain.
Return Value
Type: BoundingBox
The created BoundingBox.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
BoundingBox Structure
BoundingBox Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone