|
@@ -17,7 +17,7 @@ static void compareVectors(Test& test, const Vector<N, T>& wanted,
|
|
|
|
|
|
static void testFromAngles(Test& test) {
|
|
static void testFromAngles(Test& test) {
|
|
View v;
|
|
View v;
|
|
- v.update(0.0f, 0.0f, Vector3());
|
|
|
|
|
|
+ v.updateDirections(0.0f, 0.0f);
|
|
compareVectors(test, Vector3(0.0f, 1.0f, 0.0f), v.getUp(), "up");
|
|
compareVectors(test, Vector3(0.0f, 1.0f, 0.0f), v.getUp(), "up");
|
|
compareVectors(test, Vector3(0.0f, -1.0f, 0.0f), v.getDown(), "down");
|
|
compareVectors(test, Vector3(0.0f, -1.0f, 0.0f), v.getDown(), "down");
|
|
compareVectors(test, Vector3(0.0f, 0.0f, -1.0f), v.getLeft(), "left");
|
|
compareVectors(test, Vector3(0.0f, 0.0f, -1.0f), v.getLeft(), "left");
|
|
@@ -28,7 +28,7 @@ static void testFromAngles(Test& test) {
|
|
|
|
|
|
static void testFromQuaternion(Test& test) {
|
|
static void testFromQuaternion(Test& test) {
|
|
View v;
|
|
View v;
|
|
- v.update(Quaternion(), Vector3());
|
|
|
|
|
|
+ v.updateDirections(Quaternion());
|
|
compareVectors(test, Vector3(0.0f, 1.0f, 0.0f), v.getUp(), "up");
|
|
compareVectors(test, Vector3(0.0f, 1.0f, 0.0f), v.getUp(), "up");
|
|
compareVectors(test, Vector3(0.0f, -1.0f, 0.0f), v.getDown(), "down");
|
|
compareVectors(test, Vector3(0.0f, -1.0f, 0.0f), v.getDown(), "down");
|
|
compareVectors(test, Vector3(0.0f, 0.0f, -1.0f), v.getLeft(), "left");
|
|
compareVectors(test, Vector3(0.0f, 0.0f, -1.0f), v.getLeft(), "left");
|