Messing with matrices.
This commit is contained in:
24
main.cpp
24
main.cpp
@@ -15,6 +15,7 @@
|
||||
#include <J3ML/Geometry.hpp>
|
||||
#include <J3ML/J3ML.hpp>
|
||||
#include <jlog/Logger.hpp>
|
||||
#include <J3ML/LinearAlgebra/Matrix.hpp>
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
@@ -50,9 +51,28 @@ int main(int argc, char** argv)
|
||||
}
|
||||
|
||||
Ray a({420, 0, 0}, {1, 0, 0});
|
||||
|
||||
|
||||
std::cout << a << std::endl;
|
||||
|
||||
Matrix4x4 A {
|
||||
1, 2, 0, 1,
|
||||
3, 1, 2, 0,
|
||||
0, 4, 1, 2,
|
||||
2, 0, 3, 1
|
||||
};
|
||||
|
||||
Matrix4x4 B {
|
||||
0, 1, 2, 3,
|
||||
1, 0, 1, 0,
|
||||
2, 3, 0, 1,
|
||||
1, 2, 1, 0
|
||||
};
|
||||
|
||||
|
||||
auto C = A*B;
|
||||
|
||||
std::cout << C << std::endl;
|
||||
|
||||
|
||||
std::cout << "j3ml demo coming soon" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user