AABB Structure |
Namespace: Internal.tainicom.Aether.Physics2D.Collision
public struct AABB
The AABB type exposes the following members.
| Name | Description | |
|---|---|---|
| AABB(Vector2, Vector2) | Initializes a new instance of the AABB class | |
| AABB(Vector2, Vector2) | Initializes a new instance of the AABB class | |
| AABB(Vector2, Single, Single) | Initializes a new instance of the AABB class |
| Name | Description | |
|---|---|---|
| Center |
Get the center of the AABB.
| |
| Extents |
Get the extents of the AABB (half-widths).
| |
| Height | ||
| Perimeter |
Get the perimeter length
| |
| Q1 |
First quadrant
| |
| Q2 |
Second quadrant
| |
| Q3 |
Third quadrant
| |
| Q4 |
Forth quadrant
| |
| Vertices |
Gets the vertices of the AABB.
| |
| Width |
| Name | Description | |
|---|---|---|
| Combine(AABB) |
Combine an AABB into this one.
| |
| Combine(AABB, AABB) |
Combine two AABBs into this one.
| |
| Contains(AABB) |
Does this aabb contain the provided AABB.
| |
| Contains(Vector2) |
Determines whether the AAABB contains the specified point.
| |
| Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
| GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsValid |
Verify that the bounds are sorted. And the bounds are valid numbers (not NaN).
| |
| RayCast |
Raycast against this AABB using the specificed points and maxfraction (found in input)
| |
| TestOverlap |
Test if the two AABBs overlap.
| |
| ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
| Name | Description | |
|---|---|---|
| LowerBound |
The lower vertex
| |
| UpperBound |
The upper vertex
|
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx.) | |
| PropertyGet(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertyGetT(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx.) |