#include "../src/engine/math/matrix3d.hpp" #include "../src/engine/math/vector3d.hpp" #include using namespace engine::math; using namespace std; int main() { vector3d v1 = vector3d(1, 2, 3); vector3d v2 = vector3d(3, 2, 1); vector3d v3 = vector3d(1, 1, 1); cout << v1 << endl; cout << v2 << endl; cout << (v1 - v2) + v3 << endl; cout << -v1 << endl; cout << vector3d::Magnitude(v1) << endl; cout << vector3d::Normalize(v1) << endl; cout << vector3d::Magnitude(v3) << endl; cout << vector3d::Normalize(v3) << endl; engine::math::matrix3d m = engine::math::matrix3d(); engine::math::matrix3d id = matrix3d::Identity(); cout << m << endl; cout << m[0][0] << endl; cout << id << endl; cout << id[0][0] << id[1][1] << id[2][2] << endl; cout << id(0, 0) << id(0, 1) << id(0, 2) << endl; }