Add defines for mat2 and mat4 in app
This commit is contained in:
parent
e57bd40991
commit
eb03252c02
@ -44,4 +44,4 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
} // namespace Core
|
||||||
@ -22,7 +22,7 @@ namespace Core
|
|||||||
Vector2& operator-=(Vector2 const& other);
|
Vector2& operator-=(Vector2 const& other);
|
||||||
Vector2& operator*=(Vector2 const& other);
|
Vector2& operator*=(Vector2 const& other);
|
||||||
Vector2& operator/=(Vector2 const& other);
|
Vector2& operator/=(Vector2 const& other);
|
||||||
|
|
||||||
bool operator==(Vector2 const& other);
|
bool operator==(Vector2 const& other);
|
||||||
bool operator!=(Vector2 const& other);
|
bool operator!=(Vector2 const& other);
|
||||||
|
|
||||||
@ -56,4 +56,14 @@ namespace Core
|
|||||||
Vector3 operator*(float const& scalar);
|
Vector3 operator*(float const& scalar);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Core
|
class Matrix2x2
|
||||||
|
{
|
||||||
|
//TODO (Eero): Implement
|
||||||
|
};
|
||||||
|
|
||||||
|
class Matrix4x4
|
||||||
|
{
|
||||||
|
//TODO (Eero): Implement
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Core
|
||||||
@ -20,7 +20,8 @@ TEST(Math, Vector2_Add)
|
|||||||
ASSERT_FLOAT_EQ(result.y, -0.5);
|
ASSERT_FLOAT_EQ(result.y, -0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO (Eero): Add tests for Vector2
|
||||||
|
//TODO (Eero): Add tests for Vector3
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
::testing::InitGoogleTest(&argc, argv);
|
::testing::InitGoogleTest(&argc, argv);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user