convert vector2 and vector3 to classes instead of structs

This commit is contained in:
Eero Holmala 2023-04-19 21:40:57 +03:00
parent c81b4d213e
commit d44c824b92
2 changed files with 7 additions and 3 deletions

View File

@ -5,14 +5,16 @@ https://www.o3de.org/blog/posts/vectors-matrices-matrix-order/
namespace Core
{
struct Vec2
class Vector2
{
public:
float x;
float y;
};
struct Vec3
class Vector3
{
public:
float x;
float y;
float z;

View File

@ -2,4 +2,6 @@
## Notes
Add tests for when you start implementing the AppLib functions. Use gtest for that. Also if you can figure it out (i know you can) add some file movement to build dir automation for cmake.
Add tests for when you start implementing the AppLib functions. Use gtest for that. Also if you can figure it out (i know you can) add some file movement to build dir automation for cmake.
Remember to think of libraries as co-workers. Don't put the weight of the world on yourself.