2024-07-07 17:32:34 +02:00
|
|
|
#include <iostream>
|
2024-07-07 20:42:39 +02:00
|
|
|
#include "Block/block.h"
|
2024-07-07 17:32:34 +02:00
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
std::cout << "Hello, world!" << std::endl;
|
2024-07-07 22:47:47 +02:00
|
|
|
LinAlg::Vector3 vec(1, 2, 3);
|
|
|
|
LinAlg::Vector3 vec2(2, 1, 3);
|
2024-07-07 22:23:54 +02:00
|
|
|
Volumes::Block block(vec,1,1,1);
|
2024-07-07 20:44:56 +02:00
|
|
|
std::cout<<vec<<std::endl;
|
|
|
|
std::cout<<vec.len()<<std::endl;
|
|
|
|
vec*=2;
|
|
|
|
std::cout<<vec<<std::endl;
|
|
|
|
std::cout<<vec.len()<<std::endl;
|
|
|
|
vec/=2;
|
|
|
|
std::cout<<vec<<std::endl;
|
|
|
|
std::cout<<vec.len()<<std::endl;
|
|
|
|
std::cout<<vec.dot(vec)<<std::endl;
|
|
|
|
std::cout<<vec.cross(vec2)<<std::endl;
|
|
|
|
vec.norm();
|
|
|
|
std::cout<<vec<<std::endl;
|
|
|
|
std::cout<<vec.len()<<std::endl;
|
|
|
|
vec-=vec;
|
|
|
|
std::cout<<vec<<std::endl;
|
|
|
|
std::cout<<vec.len()<<std::endl;
|
2024-07-07 22:23:54 +02:00
|
|
|
std::cout<<block<<std::endl;
|
2024-07-07 17:32:34 +02:00
|
|
|
return 0;
|
|
|
|
}
|