BoundingBox Structure
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Defines an axis-aligned box-shaped 3D volume.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)
Syntax
'Declaration
Public Structure BoundingBox
public struct BoundingBox
The BoundingBox type exposes the following members.
Methods
Name | Description | |
---|---|---|
Contains(BoundingBox) | Tests whether the BoundingBox contains another BoundingBox. | |
Contains(BoundingFrustum) | Tests whether the BoundingBox contains a BoundingFrustum. | |
Contains(BoundingSphere) | Tests whether the BoundingBox contains a BoundingSphere. | |
Contains(Vector3) | Tests whether the BoundingBox contains a point. | |
Contains(BoundingBox%, ContainmentType%) | Tests whether the BoundingBox contains a BoundingBox. | |
Contains(BoundingSphere%, ContainmentType%) | Tests whether the BoundingBox contains a BoundingSphere. | |
Contains(Vector3%, ContainmentType%) | Tests whether the BoundingBox contains a point. | |
CreateFromPoints | Creates the smallest BoundingBox that will contain a group of points. | |
CreateFromSphere(BoundingSphere) | Creates the smallest BoundingBox that will contain the specified BoundingSphere. | |
CreateFromSphere(BoundingSphere%, BoundingBox%) | Creates the smallest BoundingBox that will contain the specified BoundingSphere. | |
CreateMerged(BoundingBox, BoundingBox) | Creates the smallest BoundingBox that contains the two specified BoundingBox instances. | |
CreateMerged(BoundingBox%, BoundingBox%, BoundingBox%) | Creates the smallest BoundingBox that contains the two specified BoundingBox instances. | |
Equals(Object) | Determines whether two instances of BoundingBox are equal. (Overrides ValueType.Equals(Object).) | |
Equals(BoundingBox) | Determines whether two instances of BoundingBox are equal. | |
GetCorners() | Gets an array of points that make up the corners of the BoundingBox. | |
GetCorners(array<Vector3[]) | Gets an array of points that make up the corners of the BoundingBox. | |
GetHashCode | Gets the hash code for this instance. (Overrides ValueType.GetHashCode().) | |
Intersects(BoundingBox) | Checks whether the current BoundingBox intersects another BoundingBox. | |
Intersects(BoundingFrustum) | Checks whether the current BoundingBox intersects a BoundingFrustum. | |
Intersects(BoundingSphere) | Checks whether the current BoundingBox intersects a BoundingSphere. | |
Intersects(Plane) | Checks whether the current BoundingBox intersects a Plane. | |
Intersects(Ray) | Checks whether the current BoundingBox intersects a Ray. | |
Intersects(BoundingBox%, Boolean%) | Checks whether the current BoundingBox intersects another BoundingBox. | |
Intersects(BoundingSphere%, Boolean%) | Checks whether the current BoundingBox intersects a BoundingSphere. | |
Intersects(Plane%, PlaneIntersectionType%) | Checks whether the current BoundingBox intersects a Plane. | |
Intersects(Ray%, Nullable<Single>%) | Checks whether the current BoundingBox intersects a Ray. | |
ToString | Returns a String that represents the current BoundingBox. (Overrides ValueType.ToString().) |
Top
Operators
Name | Description | |
---|---|---|
Equality | Determines whether two instances of BoundingBox are equal. | |
Inequality | Determines whether two instances of BoundingBox are not equal. |
Top
Fields
Name | Description | |
---|---|---|
CornerCount | Specifies the total number of corners (8) in the BoundingBox. | |
Max | The maximum point the BoundingBox contains. | |
Min | The minimum point the BoundingBox contains. |
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.