Struct MinMaxAABB
Axis aligned bounding box (AABB) stored in min and max form.
Implements
Inherited Members
Namespace: Unity.Mathematics.Geometry
Assembly: solution.dll
Syntax
[Serializable]
public struct MinMaxAABB : IEquatable<MinMaxAABB>
Remarks
Axis aligned bounding boxes (AABB) are boxes where each side is parallel with one of the Cartesian coordinate axes X, Y, and Z. AABBs are useful for approximating the region an object (or collection of objects) occupies and quickly testing whether or not that object (or collection of objects) is relevant. Because they are axis aligned, they are very cheap to construct and perform overlap tests with them.
Constructors
Name | Description |
---|---|
Min |
Constructs the AABB with the given minimum and maximum. |
Fields
Name | Description |
---|---|
Max | The maximum point contained by the AABB. |
Min | The minimum point contained by the AABB. |
Properties
Name | Description |
---|---|
Center | Computes the center of the AABB. |
Extents | Computes the extents of the AABB. |
Half |
Computes the half extents of the AABB. |
Is |
Check if the AABB is valid. |
Surface |
Computes the surface area for this axis aligned bounding box. |
Methods
Name | Description |
---|---|
Contains(Min |
Tests if the input AABB is contained entirely by this AABB. |
Contains(float3) | Tests if the input point is contained by the AABB. |
Create |
Creates the AABB from a center and extents. |
Create |
Creates the AABB from a center and half extents. |
Encapsulate(Min |
Encapsulates the given AABB. |
Encapsulate(float3) | Encapsulate the given point. |
Equals(Min |
Indicates whether the current object is equal to another object of the same type. |
Expand(float) | Expands the AABB by the given signed distance. |
Overlaps(Min |
Tests if the input AABB overlaps this AABB. |
To |
Returns the fully qualified type name of this instance. |