Skip to content

Latest commit

History

History
198 lines (129 loc) 路 5.29 KB

aabb2d.rst

File metadata and controls

198 lines (129 loc) 路 5.29 KB

C

2d axis aligned bounding box (AABB)

Header: cglm/aabb2d.h

Some convenient functions provided for AABB.

Definition of aabb:

cglm defines an aabb as a two dimensional array of vec2's. The first element is the min point and the second one is the max point. If you have another type e.g. struct or even another representation then you must convert it before and after calling a cglm aabb2d function.

Table of contents (click to go):

Macros:

  1. :cglm_aabb2d_size

Functions:

  1. :cglm_aabb2d_copy
  2. :cglm_aabb2d_zero
  3. :cglm_aabb2d_transform
  4. :cglm_aabb2d_merge
  5. :cglm_aabb2d_crop
  6. :cglm_aabb2d_crop_until
  7. :cglm_aabb2d_invalidate
  8. :cglm_aabb2d_isvalid
  9. :cglm_aabb2d_diag
  10. :cglm_aabb2d_sizev
  11. :cglm_aabb2d_radius
  12. :cglm_aabb2d_center
  13. :cglm_aabb2d_aabb
  14. :cglm_aabb2d_circle
  15. :cglm_aabb2d_point
  16. :cglm_aabb2d_contains

Functions documentation