|
BoundingBox Structure |
Represents an axis-aligned bounding box in three dimensional space.
Inheritance Hierarchy Namespace: Ab4d.SharpEngine.CommonAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax public struct BoundingBox : IEquatable<BoundingBox>,
IFormattable
The BoundingBox type exposes the following members.
Constructors Properties | Name | Description |
---|
| IsUndefined |
Returns true when the Minimum and Maximum properties are not defined (are set to float.NaN).
|
| IsZeroSize |
Returns true when the size of this BoundingBox is zero.
|
| SizeX |
Gets size in the X direction
|
| SizeY |
Gets size in the Y direction
|
| SizeZ |
Gets size in the Z direction
|
| Undefined |
Gets an undefined BoundingBox with both Minimum and Maximum set to float.NaN values.
|
TopMethods | Name | Description |
---|
| Add(BoundingBox) |
Adds another BoundingBox to this BoundingBox
|
| Add(Vector3) |
Adds one Vector3 to this bounds
|
| Contains(BoundingBox) |
Returns true when the specified BoundingBox is withing this BoundingBox, including its edges.
|
| Contains(Vector3) |
Returns true when the specified Vector3 is withing this BoundingBox, including its edges.
|
| Contains(Double, Double, Double) |
Returns true when specified point is within this BoundingBox, including its edges.
|
| Equals(BoundingBox) |
Determines whether the specified Vector4 is equal to this instance.
|
| Equals(BoundingBox) |
Determines whether the specified Vector4 is equal to this instance.
|
| Equals(Object) |
Determines whether the specified Object is equal to this instance.
(Overrides ValueTypeEquals(Object)) |
| FromPoints(Span) | |
| FromPoints(Vector3) |
Constructs a BoundingBox that fully contains the given points.
|
| FromPoints(Vector3, Vector3) |
Constructs a BoundingBox that fully contains the given two points.
|
| FromSphere |
Constructs a BoundingBox that fully contains the 3D sphere that is specified by the centerPosition and radius.
|
| FromVertices |
Constructs a BoundingBox that fully contains the given vertices.
|
| GetCenterPosition |
Returns center position of this BoundingBox.
|
| GetCorners |
Retrieves the eight corners of the bounding box.
It is recommended to use the GetCorners(Vector3) that takes a Vector3 array to prevent allocation of new Vector3 array.
|
| GetCorners(Span) | |
| GetCorners(Vector3) |
Retrieves the eight corners of the bounding box and write them to the specified array of Vector3 that needs to have at least 8 elements.
|
| GetDiagonalLength |
Returns the length of the BoundingBox diagonal that is the same as distance from Minimum to Maximum positions.
|
| GetHashCode |
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode) |
| GetSize |
Returns Vector3 that represents size of the BoundingBox
|
| IntersectsWith |
Returns a value that indicates whether the specified BoundingBox intersects with this BoundingBox.
|
| Merge(BoundingBox, BoundingBox) |
Constructs a BoundingBox that is as large as the total combined area of the two specified boxes.
|
| Merge(BoundingBox, BoundingBox, BoundingBox) |
Constructs a BoundingBox that is as large as the total combined area of the two specified boxes.
|
| ScaleAndTranslate |
Sets the out minimum and maximum Vector3D with transforming the current BoundingBox's minimum and maximum value with the specified matrix (the current BoundingBox value is not changed).
|
| ToString |
Returns a String that represents this instance.
(Overrides ValueTypeToString) |
| ToString(IFormatProvider) |
Returns a String that represents this instance.
|
| ToString(String) |
Returns a String that represents this instance.
|
| ToString(String, IFormatProvider) |
Returns a String that represents this instance.
|
| Transform(Matrix4x4) |
Transforms the current BoundingBox with the specified matrix
|
| Transform(Transform) |
Transforms the current BoundingBox with the specified transformation
|
| Transform(Matrix4x4, Vector3, Vector3) |
Transforms the current BoundingBox with the specified matrix and writes the transformed minimum and maximum positions to the specified parameters.
|
| Transform(Transform, Vector3, Vector3) |
Transforms the current BoundingBox with the specified matrix and writes the transformed minimum and maximum positions to the specified parameters.
|
| TransformAllCorners |
Sets the out minimum and maximum Vector3D with transforming the current bounds with the specified matrix (the current BoundingBox value is not changed).
|
| Translate |
Sets the out minimum and maximum Vector3D with translating the current bounds with the specified translateVector (the current BoundingBox value is not changed).
|
TopOperators Fields | Name | Description |
---|
| Maximum |
The maximum point of the box.
|
| Minimum |
The minimum point of the box.
|
TopExtension Methods See Also