Volumes/apps/main.cpp
2024-07-07 20:44:56 +02:00

27 lines
711 B
C++

#include <iostream>
#include "Block/block.h"
int main(int argc, char **argv) {
std::cout << "Hello, world!" << std::endl;
Volumes::Block block;
Vector::Vector3 vec(1,2,3);
Vector::Vector3 vec2(2,1,3);
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;
return 0;
}