|
@@ -70,12 +70,12 @@ static void testSetAngles() {
|
|
|
}
|
|
|
|
|
|
static void testCross() {
|
|
|
- TEST_V3(FV3(0, 0, 1), cross(CV30, FV3(1, 0, 0), FV3(0, 1, 0)));
|
|
|
- TEST_V3(FV3(0, -1, 0), cross(CV30, FV3(1, 0, 0), FV3(0, 0, 1)));
|
|
|
- TEST_V3(FV3(0, 0, -1), cross(CV30, FV3(0, 1, 0), FV3(1, 0, 0)));
|
|
|
- TEST_V3(FV3(1, 0, 0), cross(CV30, FV3(0, 1, 0), FV3(0, 0, 1)));
|
|
|
- TEST_V3(FV3(0, 1, 0), cross(CV30, FV3(0, 0, 1), FV3(1, 0, 0)));
|
|
|
- TEST_V3(FV3(-1, 0, 0), cross(CV30, FV3(0, 0, 1), FV3(0, 1, 0)));
|
|
|
+ TEST_V3(FV3(0, 0, 1), cross(FV3(1, 0, 0), FV3(0, 1, 0)));
|
|
|
+ TEST_V3(FV3(0, -1, 0), cross(FV3(1, 0, 0), FV3(0, 0, 1)));
|
|
|
+ TEST_V3(FV3(0, 0, -1), cross(FV3(0, 1, 0), FV3(1, 0, 0)));
|
|
|
+ TEST_V3(FV3(1, 0, 0), cross(FV3(0, 1, 0), FV3(0, 0, 1)));
|
|
|
+ TEST_V3(FV3(0, 1, 0), cross(FV3(0, 0, 1), FV3(1, 0, 0)));
|
|
|
+ TEST_V3(FV3(-1, 0, 0), cross(FV3(0, 0, 1), FV3(0, 1, 0)));
|
|
|
}
|
|
|
|
|
|
static void testSetAdd() {
|
|
@@ -92,8 +92,8 @@ static void testSetAdd() {
|
|
|
}
|
|
|
|
|
|
static void testAdd() {
|
|
|
- TEST_V3(FV3(1, 2, 3), add(CV30, CV30, FV3(1, 2, 3)));
|
|
|
- TEST_V3(FV3(3, 5, 7), add(CV30, FV3(1, 2, 3), FV3(2, 3, 4)));
|
|
|
+ TEST_V3(FV3(1, 2, 3), add(CV30, FV3(1, 2, 3)));
|
|
|
+ TEST_V3(FV3(3, 5, 7), add(FV3(1, 2, 3), FV3(2, 3, 4)));
|
|
|
}
|
|
|
|
|
|
static void testSetSub() {
|
|
@@ -110,8 +110,8 @@ static void testSetSub() {
|
|
|
}
|
|
|
|
|
|
static void testSub() {
|
|
|
- TEST_V3(FV3(1, 2, 3), sub(CV30, CV30, FV3(-1, -2, -3)));
|
|
|
- TEST_V3(FV3(-1, -1, -1), sub(CV30, FV3(1, 2, 3), FV3(2, 3, 4)));
|
|
|
+ TEST_V3(FV3(1, 2, 3), sub(CV30, FV3(-1, -2, -3)));
|
|
|
+ TEST_V3(FV3(-1, -1, -1), sub(FV3(1, 2, 3), FV3(2, 3, 4)));
|
|
|
}
|
|
|
|
|
|
static void testSetMul() {
|
|
@@ -128,7 +128,7 @@ static void testSetMul() {
|
|
|
}
|
|
|
|
|
|
static void testMul() {
|
|
|
- TEST_V3(FV3(3, 6, 9), mul(CV30, FV3(1, 2, 3), 3));
|
|
|
+ TEST_V3(FV3(3, 6, 9), mul(FV3(1, 2, 3), 3));
|
|
|
}
|
|
|
|
|
|
static void testSetMulVector() {
|
|
@@ -145,8 +145,8 @@ static void testSetMulVector() {
|
|
|
}
|
|
|
|
|
|
static void testMulVector() {
|
|
|
- TEST_V3(FV3(-2, -2, -9), mul(CV30, FV3(2, 1, 3), FV3(-1, -2, -3)));
|
|
|
- TEST_V3(FV3(2, 2, 9), mul(CV30, FV3(1, 2, 3), FV3(2, 1, 3)));
|
|
|
+ TEST_V3(FV3(-2, -2, -9), mul(FV3(2, 1, 3), FV3(-1, -2, -3)));
|
|
|
+ TEST_V3(FV3(2, 2, 9), mul(FV3(1, 2, 3), FV3(2, 1, 3)));
|
|
|
}
|
|
|
|
|
|
static void testSetDiv() {
|
|
@@ -163,7 +163,7 @@ static void testSetDiv() {
|
|
|
}
|
|
|
|
|
|
static void testDiv() {
|
|
|
- TEST_V3(FV3(-1, -2, -3), div(CV30, FV3(-3, -6, -9), 3));
|
|
|
+ TEST_V3(FV3(-1, -2, -3), div(FV3(-3, -6, -9), 3));
|
|
|
}
|
|
|
|
|
|
static void testSetDivVector() {
|
|
@@ -180,8 +180,8 @@ static void testSetDivVector() {
|
|
|
}
|
|
|
|
|
|
static void testDivVector() {
|
|
|
- TEST_V3(FV3(-2, -0.5f, -1), div(CV30, FV3(2, 1, 3), FV3(-1, -2, -3)));
|
|
|
- TEST_V3(FV3(0.5f, 2, 1), div(CV30, FV3(1, 2, 3), FV3(2, 1, 3)));
|
|
|
+ TEST_V3(FV3(-2, -0.5f, -1), div(FV3(2, 1, 3), FV3(-1, -2, -3)));
|
|
|
+ TEST_V3(FV3(0.5f, 2, 1), div(FV3(1, 2, 3), FV3(2, 1, 3)));
|
|
|
}
|
|
|
|
|
|
static void testSetInvert() {
|
|
@@ -194,7 +194,7 @@ static void testSetInvert() {
|
|
|
}
|
|
|
|
|
|
static void testInvert() {
|
|
|
- TEST_V3(FV3(-1, 2, 3), invert(CV30, FV3(1, -2, -3)));
|
|
|
+ TEST_V3(FV3(-1, 2, 3), invert(FV3(1, -2, -3)));
|
|
|
}
|
|
|
|
|
|
static void testDot() {
|