Volumes/apps/main.cpp

27 lines
711 B
C++
Raw Normal View History

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 20:42:39 +02:00
Volumes::Block block;
2024-07-07 20:44:56 +02:00
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;
2024-07-07 17:32:34 +02:00
return 0;
}