BoundingSphere Structure
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Defines a sphere.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)
Syntax
'Declaration
Public Structure BoundingSphere
public struct BoundingSphere
The BoundingSphere type exposes the following members.
Methods
Name | Description | |
---|---|---|
Contains(BoundingBox) | Checks whether the current BoundingSphere contains the specified BoundingBox. | |
Contains(BoundingFrustum) | Checks whether the current BoundingSphere contains the specified BoundingFrustum. | |
Contains(BoundingSphere) | Checks whether the current BoundingSphere contains the specified BoundingSphere. | |
Contains(Vector3) | Checks whether the current BoundingSphere contains the specified point. | |
Contains(BoundingBox%, ContainmentType%) | Checks whether the current BoundingSphere contains the specified BoundingBox. | |
Contains(BoundingSphere%, ContainmentType%) | Checks whether the current BoundingSphere contains the specified BoundingSphere. | |
Contains(Vector3%, ContainmentType%) | Checks whether the current BoundingSphere contains the specified point. | |
CreateFromBoundingBox(BoundingBox) | Creates the smallest BoundingSphere that can contain a specified BoundingBox. | |
CreateFromBoundingBox(BoundingBox%, BoundingSphere%) | Creates the smallest BoundingSphere that can contain a specified BoundingBox. | |
CreateFromFrustum | Creates the smallest BoundingSphere that can contain a specified BoundingFrustum. | |
CreateFromPoints | Creates a BoundingSphere that can contain a specified list of points. | |
CreateMerged(BoundingSphere, BoundingSphere) | Creates a BoundingSphere that contains the two specified BoundingSphere instances. | |
CreateMerged(BoundingSphere%, BoundingSphere%, BoundingSphere%) | Creates a BoundingSphere that contains the two specified BoundingSphere instances. | |
Equals(Object) | Determines whether the specified Object is equal to the BoundingSphere. (Overrides ValueType.Equals(Object).) | |
Equals(BoundingSphere) | Determines whether the specified BoundingSphere is equal to the current BoundingSphere. | |
GetHashCode | Gets the hash code for this instance. (Overrides ValueType.GetHashCode().) | |
Intersects(BoundingBox) | Checks whether the current BoundingSphere intersects with a specified BoundingBox. | |
Intersects(BoundingFrustum) | Checks whether the current BoundingSphere intersects with a specified BoundingFrustum. | |
Intersects(BoundingSphere) | Checks whether the current BoundingSphere intersects with a specified BoundingSphere. | |
Intersects(Plane) | Checks whether the current BoundingSphere intersects with a specified Plane. | |
Intersects(Ray) | Checks whether the current BoundingSphere intersects with a specified Ray. | |
Intersects(BoundingBox%, Boolean%) | Checks whether the current BoundingSphere intersects a BoundingBox. | |
Intersects(BoundingSphere%, Boolean%) | Checks whether the current BoundingSphere intersects another BoundingSphere. | |
Intersects(Plane%, PlaneIntersectionType%) | Checks whether the current BoundingSphere intersects a Plane. | |
Intersects(Ray%, Nullable<Single>%) | Checks whether the current BoundingSphere intersects a Ray. | |
ToString | Returns a String that represents the current BoundingSphere. (Overrides ValueType.ToString().) | |
Transform(Matrix) | Translates and scales the BoundingSphere using a given Matrix. | |
Transform(Matrix%, BoundingSphere%) | Translates and scales the BoundingSphere using a given Matrix. |
Top
Operators
Name | Description | |
---|---|---|
Equality | Determines whether two instances of BoundingSphere are equal. | |
Inequality | Determines whether two instances of BoundingSphere are not equal. |
Top
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.