circle fix, new copy func

This commit is contained in:
duarm
2023-12-02 21:00:21 -03:00
parent 056b28e4da
commit 2a975a7d0a
5 changed files with 52 additions and 23 deletions

View File

@@ -8,6 +8,12 @@
#include "../include/cglm/cglm.h"
#include "../include/cglm/call.h"
CGLM_EXPORT
void
glmc_aabb2d_copy(vec2 aabb[2], vec2 dest[2]) {
glm_aabb2d_copy(aabb, dest);
}
CGLM_EXPORT
void
glmc_aabb2d_transform(vec2 aabb[2], mat4 m, vec2 dest[2]) {
@@ -91,6 +97,6 @@ glmc_aabb2d_contains(vec2 aabb[2], vec2 other[2]) {
CGLM_EXPORT
bool
glmc_aabb2d_sphere(vec2 aabb[2], vec4 s) {
return glm_aabb2d_sphere(aabb, s);
glmc_aabb2d_circle(vec2 aabb[2], vec3 s) {
return glm_aabb2d_circle(aabb, s);
}