Files
UoL/CM2005 Object Oriented Programming/Topic 2/2.6.1/Vec3D.cpp

7 lines
102 B
C++

#include <cmath>
#include "Vec3D.h"
int Vec3D::getLength()
{
return std::sqrt((x*x + y*y + z*z));
}