|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSystem.ValueType
Microsoft.Xna.Framework.BoundingBox
public final class BoundingBox
Defines an axis-aligned box-shaped 3D volume.
Field Summary | |
---|---|
int |
CornerCount
Specifies the total number of corners (8) in the BoundingBox. |
Vector3 |
Max
The maximum point the BoundingBox contains. |
Vector3 |
Min
The minimum point the BoundingBox contains. |
Constructor Summary | |
---|---|
BoundingBox()
Creates an instance of BoundingBox. |
|
BoundingBox(Vector3 min,
Vector3 max)
Creates an instance of BoundingBox. |
Method Summary | |
---|---|
ContainmentType |
Contains(BoundingBox box)
Tests whether the BoundingBox contains another BoundingBox. |
ContainmentType |
Contains(BoundingSphere sphere)
Tests whether the BoundingBox contains a BoundingSphere. |
ContainmentType |
Contains(Vector3 point)
Tests whether the BoundingBox contains a point. |
static BoundingBox |
CreateFromSphere(BoundingSphere sphere)
Creates the smallest BoundingBox that will contain the specified BoundingSphere. |
static void |
CreateFromSphere(BoundingSphere sphere,
BoundingBox result)
Creates the smallest BoundingBox that will contain the specified BoundingSphere. |
static BoundingBox |
CreateMerged(BoundingBox original,
BoundingBox additional)
Creates the smallest BoundingBox that contains the two specified BoundingBox instances. |
static void |
CreateMerged(BoundingBox original,
BoundingBox additional,
BoundingBox result)
Creates the smallest BoundingBox that contains the two specified BoundingBox instances. |
boolean |
Equals(BoundingBox other)
Determines whether two instances of BoundingBox are equal. |
boolean |
equals(java.lang.Object obj)
Determines whether two instances of BoundingBox are equal. |
Vector3[] |
GetCorners()
Gets an array of points that make up the corners of the BoundingBox. |
void |
GetCorners(Vector3[] corners)
Defines an axis-aligned box-shaped 3D volume. |
int |
hashCode()
Gets the hash code for this instance. |
boolean |
Intersects(BoundingBox box)
Checks whether the current BoundingBox intersects another BoundingBox. |
void |
Intersects(BoundingBox box,
boolean result)
Checks whether the current BoundingBox intersects another BoundingBox. |
boolean |
Intersects(BoundingSphere sphere)
Checks whether the current BoundingBox intersects a BoundingSphere. |
void |
Intersects(BoundingSphere sphere,
boolean result)
Checks whether the current BoundingBox intersects a BoundingSphere. |
PlaneIntersectionType |
Intersects(Plane plane)
Checks whether the current BoundingBox intersects a Plane. |
void |
Intersects(Plane plane,
PlaneIntersectionType result)
Checks whether the current BoundingBox intersects a Plane. |
java.lang.Float |
Intersects(Ray ray)
Checks whether the current BoundingBox intersects a Ray. |
void |
Intersects(Ray ray,
java.lang.Float result)
Checks whether the current BoundingBox intersects a Ray. |
java.lang.String |
toString()
Returns a String that represents the current BoundingBox. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int CornerCount
public Vector3 Max
public Vector3 Min
Constructor Detail |
---|
public BoundingBox(Vector3 min, Vector3 max)
min
- The minimum point the BoundingBox includes.max
- The maximum point the BoundingBox includes.public BoundingBox()
Method Detail |
---|
public ContainmentType Contains(BoundingBox box)
box
- The BoundingBox to test for overlap.public ContainmentType Contains(BoundingSphere sphere)
sphere
- The BoundingSphere to test for overlap.public ContainmentType Contains(Vector3 point)
point
- The point to test for overlap.public static BoundingBox CreateFromSphere(BoundingSphere sphere)
sphere
- The BoundingSphere to contain.public static void CreateFromSphere(BoundingSphere sphere, BoundingBox result)
sphere
- The BoundingSphere to contain.result
- [OutAttribute] The created BoundingBox.public static BoundingBox CreateMerged(BoundingBox original, BoundingBox additional)
original
- One of the BoundingBoxs to contain.additional
- One of the BoundingBoxs to contain.public static void CreateMerged(BoundingBox original, BoundingBox additional, BoundingBox result)
original
- One of the BoundingBoxs to contain.additional
- One of the BoundingBoxs to contain.result
- [OutAttribute] The created BoundingBox.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The Object to compare with the current BoundingBox.
public boolean Equals(BoundingBox other)
Equals
in interface IEquatable<BoundingBox>
other
- The BoundingBox to compare with the current BoundingBox.
public Vector3[] GetCorners()
public void GetCorners(Vector3[] corners)
corners
- An existing array of at least 8 Vector3 points where the corners of the BoundingBox are written.
ArgumentNullException
ArgumentOutOfRangeException
public int hashCode()
hashCode
in class java.lang.Object
public boolean Intersects(BoundingBox box)
box
- The BoundingBox to check for intersection with.
public boolean Intersects(BoundingSphere sphere)
sphere
- The BoundingSphere to check for intersection with.
public PlaneIntersectionType Intersects(Plane plane)
plane
- The Plane to check for intersection with.
public java.lang.Float Intersects(Ray ray)
ray
- The Ray to check for intersection with.
public void Intersects(BoundingBox box, boolean result)
box
- The BoundingBox to check for intersection with.result
- [OutAttribute] true if the BoundingBox instances intersect; false otherwise.public void Intersects(BoundingSphere sphere, boolean result)
sphere
- The BoundingSphere to check for intersection with.result
- [OutAttribute] true if the BoundingBox and BoundingSphere intersect; false otherwise.public void Intersects(Plane plane, PlaneIntersectionType result)
plane
- The Plane to check for intersection with.result
- [OutAttribute] An enumeration indicating whether the BoundingBox intersects the Plane.public void Intersects(Ray ray, java.lang.Float result)
ray
- The Ray to check for intersection with.result
- [OutAttribute] Distance at which the ray intersects the BoundingBox, or null if there is no intersection.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |