Method Contains
Contains(float3)
Returns whether a point in 3D space is contained by the AABB, or not. Because math is done to compute the minimum and maximum coordinates of the AABB, overflow is possible for extreme values.
Declaration
public bool Contains(float3 point)
Parameters
Type | Name | Description |
---|---|---|
float3 | point | The point to check for whether it's contained by the AABB |
Returns
Type | Description |
---|---|
bool | True if the point is contained, and false if the point is not contained by the AABB. |
Contains(AABB)
Returns whether the AABB contains another AABB completely. Because math is done to compute the minimum and maximum coordinates of the AABBs, overflow is possible for extreme values.
Declaration
public bool Contains(AABB b)
Parameters
Type | Name | Description |
---|---|---|
AABB | b | The AABB to check for whether it's contained by this AABB |
Returns
Type | Description |
---|---|
bool | True if the AABB is contained, and false if it is not. |