Add organized the vector into header and implementation files

This commit is contained in:
Lev
2021-05-22 00:45:33 -05:00
parent e764de4c10
commit c1521602d0
4 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,27 @@
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include "Vec3D.h"
Vec3D vec1;
void doSomething()
{
vec1.x = 10;
vec1.y = 12;
vec1.z = 25;
}
int main()
{
doSomething();
//std::cout << vec1.x << std::endl;
//std::cout << vec1.size << std::endl;
std::vector<Vec3D> coords;
coords.push_back(vec1);
//std::cout << coords[0].x << std::endl;
std::cout << coords[0].getLength() << std::endl;
return 0;
}