diff options
author | vimene <vincent.menegaux@gmail.com> | 2023-12-03 09:27:32 +0100 |
---|---|---|
committer | vimene <vincent.menegaux@gmail.com> | 2023-12-03 09:27:32 +0100 |
commit | 48ec7df0fd27fab05c9918e83a3a7da1cc32d7a0 (patch) | |
tree | 259ec6e395e44b0af117adc9605203f8affb4b0f /src/o3d/mesh.cpp | |
parent | 5a8bc0a4936cdd461c43740437541f8c991ff117 (diff) | |
download | engine-48ec7df0fd27fab05c9918e83a3a7da1cc32d7a0.tar.gz |
renamed MathVector{2,3,4} to Vector{2,3,4} and Mat4 to Matrix4 in engine::math
Diffstat (limited to 'src/o3d/mesh.cpp')
-rw-r--r-- | src/o3d/mesh.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/o3d/mesh.cpp b/src/o3d/mesh.cpp index 7da77aa..47a1ea2 100644 --- a/src/o3d/mesh.cpp +++ b/src/o3d/mesh.cpp @@ -1,7 +1,7 @@ #include "o3d/mesh.h" #include <vector> #include <array> -#include "math/math_vector.h" +#include "math/vector.h" #include "o3d/vertex.h" using namespace engine::o3d; @@ -9,14 +9,14 @@ using namespace engine::o3d; Mesh Mesh::cube() { return { { - { engine::math::MathVector3(-1.f, -1.f, -1.f), {} }, - { engine::math::MathVector3(+1.f, -1.f, -1.f), {} }, - { engine::math::MathVector3(-1.f, +1.f, -1.f), {} }, - { engine::math::MathVector3(+1.f, +1.f, -1.f), {} }, - { engine::math::MathVector3(-1.f, -1.f, +1.f), {} }, - { engine::math::MathVector3(+1.f, -1.f, +1.f), {} }, - { engine::math::MathVector3(-1.f, +1.f, +1.f), {} }, - { engine::math::MathVector3(+1.f, +1.f, +1.f), {} }, + { engine::math::Vector3(-1.f, -1.f, -1.f), {} }, + { engine::math::Vector3(+1.f, -1.f, -1.f), {} }, + { engine::math::Vector3(-1.f, +1.f, -1.f), {} }, + { engine::math::Vector3(+1.f, +1.f, -1.f), {} }, + { engine::math::Vector3(-1.f, -1.f, +1.f), {} }, + { engine::math::Vector3(+1.f, -1.f, +1.f), {} }, + { engine::math::Vector3(-1.f, +1.f, +1.f), {} }, + { engine::math::Vector3(+1.f, +1.f, +1.f), {} }, }, { { 0, 2, 3 }, { 0, 3, 1 }, // face 1 |