BoundingBox

struct BoundingBox : System.ValueType, System.IEquatable<BoundingBox>
Vector3 Min
Vector3 Max
int CornerCount
ContainmentType Contains(BoundingBox box)
Parameters:
  • box (Microsoft.Xna.Framework.BoundingBox) –
void Contains(ref BoundingBox box, ref ContainmentType result)
Parameters:
  • (ref) box (Microsoft.Xna.Framework.BoundingBox) –
  • (ref) result (Microsoft.Xna.Framework.ContainmentType) –
ContainmentType Contains(BoundingFrustum frustum)
Parameters:
  • frustum (Microsoft.Xna.Framework.BoundingFrustum) –
ContainmentType Contains(BoundingSphere sphere)
Parameters:
  • sphere (Microsoft.Xna.Framework.BoundingSphere) –
void Contains(ref BoundingSphere sphere, ref ContainmentType result)
Parameters:
  • (ref) sphere (Microsoft.Xna.Framework.BoundingSphere) –
  • (ref) result (Microsoft.Xna.Framework.ContainmentType) –
ContainmentType Contains(Vector3 point)
Parameters:
  • point (Microsoft.Xna.Framework.Vector3) –
void Contains(ref Vector3 point, ref ContainmentType result)
Parameters:
  • (ref) point (Microsoft.Xna.Framework.Vector3) –
  • (ref) result (Microsoft.Xna.Framework.ContainmentType) –
BoundingBox CreateFromPoints(System.Collections.Generic.IEnumerable<Vector3> points)

Create a bounding box from the given list of points.

Parameters:
  • points (System.Collections.Generic.IEnumerable<Vector3>) – The list of Vector3 instances defining the point cloud to bound
Returns:

A bounding box that encapsulates the given point cloud.

BoundingBox CreateFromSphere(BoundingSphere sphere)
Parameters:
  • sphere (Microsoft.Xna.Framework.BoundingSphere) –
void CreateFromSphere(ref BoundingSphere sphere, ref BoundingBox result)
Parameters:
  • (ref) sphere (Microsoft.Xna.Framework.BoundingSphere) –
  • (ref) result (Microsoft.Xna.Framework.BoundingBox) –
BoundingBox CreateMerged(BoundingBox original, BoundingBox additional)
Parameters:
  • original (Microsoft.Xna.Framework.BoundingBox) –
  • additional (Microsoft.Xna.Framework.BoundingBox) –
void CreateMerged(ref BoundingBox original, ref BoundingBox additional, ref BoundingBox result)
Parameters:
  • (ref) original (Microsoft.Xna.Framework.BoundingBox) –
  • (ref) additional (Microsoft.Xna.Framework.BoundingBox) –
  • (ref) result (Microsoft.Xna.Framework.BoundingBox) –
bool Equals(BoundingBox other)
Parameters:
  • other (Microsoft.Xna.Framework.BoundingBox) –
bool Equals(System.Object obj)
Parameters:
  • obj (System.Object) –
Microsoft.Xna.Framework.Vector3[] GetCorners()
void GetCorners(Microsoft.Xna.Framework.Vector3[] corners)
Parameters:
  • corners (Microsoft.Xna.Framework.Vector3[]) –
int GetHashCode()
bool Intersects(BoundingBox box)
Parameters:
  • box (Microsoft.Xna.Framework.BoundingBox) –
void Intersects(ref BoundingBox box, ref bool result)
Parameters:
  • (ref) box (Microsoft.Xna.Framework.BoundingBox) –
  • (ref) result (bool) –
bool Intersects(BoundingFrustum frustum)
Parameters:
  • frustum (Microsoft.Xna.Framework.BoundingFrustum) –
bool Intersects(BoundingSphere sphere)
Parameters:
  • sphere (Microsoft.Xna.Framework.BoundingSphere) –
void Intersects(ref BoundingSphere sphere, ref bool result)
Parameters:
  • (ref) sphere (Microsoft.Xna.Framework.BoundingSphere) –
  • (ref) result (bool) –
PlaneIntersectionType Intersects(Plane plane)
Parameters:
  • plane (Microsoft.Xna.Framework.Plane) –
void Intersects(ref Plane plane, ref PlaneIntersectionType result)
Parameters:
  • (ref) plane (Microsoft.Xna.Framework.Plane) –
  • (ref) result (Microsoft.Xna.Framework.PlaneIntersectionType) –
System.Nullable<Single> Intersects(Ray ray)
Parameters:
  • ray (Microsoft.Xna.Framework.Ray) –
void Intersects(ref Ray ray, ref System.Nullable<Single> result)
Parameters:
  • (ref) ray (Microsoft.Xna.Framework.Ray) –
  • (ref) result (System.Nullable<Single>) –
bool op_Equality(BoundingBox a, BoundingBox b)
Parameters:
  • a (Microsoft.Xna.Framework.BoundingBox) –
  • b (Microsoft.Xna.Framework.BoundingBox) –
bool op_Inequality(BoundingBox a, BoundingBox b)
Parameters:
  • a (Microsoft.Xna.Framework.BoundingBox) –
  • b (Microsoft.Xna.Framework.BoundingBox) –
string get_DebugDisplayString()
string ToString()