7 inline float squareroot(const float f)
12 inline int squareroot(const int f)
14 return static_cast<int>(sqrtf(static_cast<float>(f)));
21 vector2d(T nx, T ny) : X(nx), Y(ny) {}
22 T getLength() const { return squareroot( X*X + Y*Y ); }
27 vector2d<int> getMousePos();
36 void the_game(float turn_amount)
45 int dx = getMousePos().X;
46 int dy = getMousePos().Y;
48 turn_amount = vector2d<float>(dx, dy).getLength();