Skip to content

Commit

Permalink
call api
Browse files Browse the repository at this point in the history
  • Loading branch information
duarm committed Feb 19, 2024
1 parent e312f28 commit 7e6a463
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion include/cglm/aabb2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,10 @@ glm_aabb2d_diagonal(vec2 aabb[2]) {
}

/*!
* @brief distance between of min and max
* @brief size of aabb
*
* @param[in] aabb bounding aabb
* @param[out] dest size
*/
CGLM_INLINE
void
Expand Down
6 changes: 5 additions & 1 deletion include/cglm/call/aabb2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ glmc_aabb2d_isvalid(vec2 aabb[2]);

CGLM_EXPORT
float
glmc_aabb2d_size(vec2 aabb[2]);
glmc_aabb2d_diagonal(vec2 aabb[2]);

CGLM_EXPORT
void
glmc_aabb2d_size(vec2 aabb[2], vec2 dest);

CGLM_EXPORT
float
Expand Down
10 changes: 8 additions & 2 deletions src/aabb2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,14 @@ glmc_aabb2d_isvalid(vec2 aabb[2]) {

CGLM_EXPORT
float
glmc_aabb2d_size(vec2 aabb[2]) {
return glm_aabb2d_size(aabb);
glmc_aabb2d_diagonal(vec2 aabb[2]) {
return glm_aabb2d_diagonal(aabb);
}

CGLM_EXPORT
void
glmc_aabb2d_size(vec2 aabb[2], vec2 dest) {
return glm_aabb2d_size(aabb, dest);
}

CGLM_EXPORT
Expand Down

0 comments on commit 7e6a463

Please sign in to comment.