|
@@ -4,7 +4,7 @@
|
|
|
#define CV3(a, b, c) (&(CoreVector3){{a, b, c}})
|
|
|
|
|
|
static void testInit() {
|
|
|
- CoreBox box = {0};
|
|
|
+ CoreBox box = CORE_BOX;
|
|
|
coreSetBox(&box, CV3(1.0f, 2.0f, 3.0f));
|
|
|
char buffer[128];
|
|
|
coreToStringBox(&box, buffer, sizeof(buffer));
|
|
@@ -26,7 +26,7 @@ static void testInit() {
|
|
|
}
|
|
|
|
|
|
static void testOffset() {
|
|
|
- CoreBox box = {0};
|
|
|
+ CoreBox box = CORE_BOX;
|
|
|
coreSetBox(&box, CV3(1.0f, 2.0f, 3.0f));
|
|
|
coreOffsetBox(&box, CV3(7.0f, -4.0f, 6.0f));
|
|
|
char buffer[128];
|
|
@@ -36,11 +36,11 @@ static void testOffset() {
|
|
|
}
|
|
|
|
|
|
static void testCollidesWith() {
|
|
|
- CoreBox boxA = {0};
|
|
|
+ CoreBox boxA = CORE_BOX;
|
|
|
coreSetBox(&boxA, CV3(1.0f, 2.0f, 3.0f));
|
|
|
- CoreBox boxB = {0};
|
|
|
+ CoreBox boxB = CORE_BOX;
|
|
|
coreSetBox(&boxB, CV3(-1.0f, -2.0f, -3.0f));
|
|
|
- CoreBox boxC = {0};
|
|
|
+ CoreBox boxC = CORE_BOX;
|
|
|
coreSetBox(&boxC, CV3(2.0f, 2.0f, 2.0f));
|
|
|
coreOffsetBox(&boxC, CV3(-1.0f, -1.0f, -1.0f));
|
|
|
|
|
@@ -53,7 +53,7 @@ static void testCollidesWith() {
|
|
|
}
|
|
|
|
|
|
static void testExpand() {
|
|
|
- CoreBox box = {0};
|
|
|
+ CoreBox box = CORE_BOX;
|
|
|
coreSetBox(&box, CV3(1.0f, 2.0f, 3.0f));
|
|
|
coreExpandBox(&box, CV3(7.0f, -4.0f, 6.0f));
|
|
|
|
|
@@ -70,7 +70,7 @@ static void testExpand() {
|
|
|
}
|
|
|
|
|
|
static void testGrow() {
|
|
|
- CoreBox box = {0};
|
|
|
+ CoreBox box = CORE_BOX;
|
|
|
coreSetBox(&box, CV3(1.0f, 2.0f, 3.0f));
|
|
|
coreGrowBox(&box, CV3(4.0f, 2.0f, 6.0f));
|
|
|
char buffer[128];
|