/* Collision shape */ COLL_SHAPE* create_collshape(u32 type, void* shape) { COLL_SHAPE* collshape = malloc(COLL_SHAPE_BYTE_SIZE); collshape->shape_type = type; collshape->shape = shape; calc_aabb(collshape); }
void Vectorizer::calc_vertices_aabb(double* min_x, double* max_x, double* min_y, double* max_y) const { assert_msg(verts != NULL, "Cannot calculate AABB from NULL vertices"); calc_aabb(&verts[0][0], &verts[0][1], sizeof(double4), nv, min_x, max_x, min_y, max_y); }