Skip to content

CF_Aabb

Category: math
GitHub: cute_math.h


Axis-aligned bounding box. A box that cannot rotate.

Struct Members Description
CF_V2 min The min corner of the box.
CF_V2 max Top max corner of the box.

Remarks

There are many ways to describ an AABB, such as a point + half-extents, or a point and width/height pair. However, of all these options the min/max choice is the simplest when it comes to the majority of collision detection routine implementations.

cf_aabb_to_poly_manifold
cf_make_aabb
cf_width
cf_height
cf_center
cf_top_left
cf_top_right
cf_bottom_left
cf_bottom_right
cf_contains_point
cf_overlaps
cf_make_aabb_verts
cf_aabb_verts
cf_circle_to_aabb
cf_aabb_to_aabb
cf_aabb_to_capsule
cf_aabb_to_poly
cf_ray_to_aabb
cf_circle_to_aabb_manifold
cf_aabb_to_aabb_manifold
cf_aabb_to_capsule_manifold