diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-11-27 00:50:46 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-11-27 00:50:46 -0800 |
commit | 56cab5cdbbec13c52fb238a732568bb02a36f418 (patch) | |
tree | 99d40f86a1c586660df7e29b015c84da35369eef | |
parent | 4c25d8b865534db92ab08f9c4723b7fc831f4e96 (diff) |
test: s/aabb_t/bb2f_t/g
mechanical change syncing the test code with the aabb type rename
-rw-r--r-- | src/test.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -24,12 +24,12 @@ typedef struct v2f_t { float x, y; } v2f_t; -typedef struct aabb_t { +typedef struct bb2f_t { v2f_t min, max; -} aabb_t; +} bb2f_t; -ix2_search_status_t cb(void *cb_context, ix2_object_t *ix2_object, v2f_t *ix2_object_position, aabb_t *ix2_object_aabb, void *object) +ix2_search_status_t cb(void *cb_context, ix2_object_t *ix2_object, v2f_t *ix2_object_position, bb2f_t *ix2_object_aabb, void *object) { fprintf(stderr, "found %p ix2_object=%p ix2_object_aabb=%f,%f ... %f,%f\n", cb_context, ix2_object, ix2_object_aabb->min.x, ix2_object_aabb->min.y, ix2_object_aabb->max.x, ix2_object_aabb->max.y); @@ -38,7 +38,7 @@ ix2_search_status_t cb(void *cb_context, ix2_object_t *ix2_object, v2f_t *ix2_ob } typedef struct object_t { - aabb_t aabb; + bb2f_t aabb; ix2_object_t *ix; } object_t; @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) { .aabb = {{ -.2f, -.2f }, { .1f, .1f }} }, { .aabb = {{ -.1f, -.1f }, { .2f, .2f }} }, }; - aabb_t aabb = {{ -1.f, -1.f }, {1.f, 1.f }}; + bb2f_t aabb = {{ -1.f, -1.f }, {1.f, 1.f }}; ix2_object_t *o, *j; ix2_t *ix2; |