BoundingBox Structure

Defines an axis-aligned box-shaped 3D volume.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

public struct BoundingBox

The BoundingBox type exposes the following members.

  NameDescription
Public methodBoundingBoxCreates an instance of BoundingBox.
Top

  NameDescription
Public methodContains(BoundingBox)Tests whether the BoundingBox contains another BoundingBox.
Public methodContains(BoundingFrustum)Tests whether the BoundingBox contains a BoundingFrustum.
Public methodContains(BoundingSphere)Tests whether the BoundingBox contains a BoundingSphere.
Public methodContains(Vector3)Tests whether the BoundingBox contains a point.
Public methodContains(BoundingBox, ContainmentType)Tests whether the BoundingBox contains a BoundingBox.
Public methodContains(BoundingSphere, ContainmentType)Tests whether the BoundingBox contains a BoundingSphere.
Public methodContains(Vector3, ContainmentType)Tests whether the BoundingBox contains a point.
Public methodStatic memberCreateFromPointsCreates the smallest BoundingBox that will contain a group of points.
Public methodStatic memberCreateFromSphere(BoundingSphere)Creates the smallest BoundingBox that will contain the specified BoundingSphere.
Public methodStatic memberCreateFromSphere(BoundingSphere, BoundingBox)Creates the smallest BoundingBox that will contain the specified BoundingSphere.
Public methodStatic memberCreateMerged(BoundingBox, BoundingBox)Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
Public methodStatic memberCreateMerged(BoundingBox, BoundingBox, BoundingBox)Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
Public methodEquals(Object)Determines whether two instances of BoundingBox are equal. (Overrides ValueType.Equals(Object).)
Public methodEquals(BoundingBox)Determines whether two instances of BoundingBox are equal.
Public methodGetCorners()Gets an array of points that make up the corners of the BoundingBox.
Public methodGetCorners(Vector3[])Gets an array of points that make up the corners of the BoundingBox.
Public methodGetHashCodeGets the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public methodIntersects(BoundingBox)Checks whether the current BoundingBox intersects another BoundingBox.
Public methodIntersects(BoundingFrustum)Checks whether the current BoundingBox intersects a BoundingFrustum.
Public methodIntersects(BoundingSphere)Checks whether the current BoundingBox intersects a BoundingSphere.
Public methodIntersects(Plane)Checks whether the current BoundingBox intersects a Plane.
Public methodIntersects(Ray)Checks whether the current BoundingBox intersects a Ray.
Public methodIntersects(BoundingBox, Boolean)Checks whether the current BoundingBox intersects another BoundingBox.
Public methodIntersects(BoundingSphere, Boolean)Checks whether the current BoundingBox intersects a BoundingSphere.
Public methodIntersects(Plane, PlaneIntersectionType)Checks whether the current BoundingBox intersects a Plane.
Public methodIntersects(Ray, Nullable<Single>)Checks whether the current BoundingBox intersects a Ray.
Public methodToStringReturns a String that represents the current BoundingBox. (Overrides ValueType.ToString().)
Top

  NameDescription
Public operatorStatic memberEqualityDetermines whether two instances of BoundingBox are equal.
Public operatorStatic memberInequalityDetermines whether two instances of BoundingBox are not equal.
Top

  NameDescription
Public fieldStatic memberCornerCountSpecifies the total number of corners (8) in the BoundingBox.
Public fieldMaxThe maximum point the BoundingBox contains.
Public fieldMinThe minimum point the BoundingBox contains.
Top

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show: