-
-
Notifications
You must be signed in to change notification settings - Fork 9
AABB
IsaacShelton edited this page Nov 13, 2022
·
6 revisions
AABB represents the type of an axis-aligned boundary box.
| Type | Size | Memory Management Model | File |
|---|---|---|---|
AABB |
? bytes | Scoped | 2.7/AABB.adept |
struct <$T> AABB (x, y, w, h $T)
where
$T is any numeric type
| Name | Type | Description |
|---|---|---|
x |
$T |
X Coordinate |
y |
$T |
Y Coordinate |
w |
$T |
Width |
h |
$T |
Height |
Children are freed when they run out of scope.
-
func AABB(x, y, w, h $T) <$T> AABBConstructs an AABB.
-
func intersecting(this *<$T> AABB, other POD <$T> AABB) boolReturns whether two AABBs are intersecting. Touching isn't considered intersecting.
-
func intersectingPoint(this *<$T> AABB, point_x, point_y POD $T) boolReturns whether an AABB intersects a point. Touching is considered intersecting.