Click or drag to resize

AABB Structure

An axis aligned bounding box.

Namespace:  Internal.tainicom.Aether.Physics2D.Collision
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public struct AABB

The AABB type exposes the following members.

Constructors
  NameDescription
Public methodAABB(Vector2, Vector2)
Initializes a new instance of the AABB class
Public methodAABB(Vector2, Vector2)
Initializes a new instance of the AABB class
Public methodAABB(Vector2, Single, Single)
Initializes a new instance of the AABB class
Top
Properties
  NameDescription
Public propertyCenter
Get the center of the AABB.
Public propertyExtents
Get the extents of the AABB (half-widths).
Public propertyHeight
Public propertyPerimeter
Get the perimeter length
Public propertyQ1
First quadrant
Public propertyQ2
Second quadrant
Public propertyQ3
Third quadrant
Public propertyQ4
Forth quadrant
Public propertyVertices
Gets the vertices of the AABB.
Public propertyWidth
Top
Methods
  NameDescription
Public methodCombine(AABB)
Combine an AABB into this one.
Public methodCombine(AABB, AABB)
Combine two AABBs into this one.
Public methodContains(AABB)
Does this aabb contain the provided AABB.
Public methodContains(Vector2)
Determines whether the AAABB contains the specified point.
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsValid
Verify that the bounds are sorted. And the bounds are valid numbers (not NaN).
Public methodRayCast
Raycast against this AABB using the specificed points and maxfraction (found in input)
Public methodStatic memberTestOverlap
Test if the two AABBs overlap.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Fields
  NameDescription
Public fieldLowerBound
The lower vertex
Public fieldUpperBound
The upper vertex
Top
Extension Methods
See Also