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,7 @@
#include <cmath>
#include "Vec3D.h"
int Vec3D::getLength()
{
return std::sqrt((x*x + y*y + z*z));
}