54 double x = magnitude * cos(
Self::PI * direction / 180.0);
55 double y = magnitude * sin(
Self::PI * direction / 180.0);
80 double x =
dx + vector.
dx;
81 double y =
dy + vector.
dy;
94 ss <<
"(0.0)" << std::endl;
96 ss <<
"(" << std::setprecision(4) <<
dx <<
"," <<
dy <<
")" << std::endl;
98 std::string stringVelocity;
99 std::getline(ss, stringVelocity);
100 return stringVelocity;
Vector2D operator+(Vector2D vector)
static Vector2D getVector2DWithXAndY(double dx, double dy)
static Vector2D getVector2DWithMagnitudeAndDirection(double magnitude, double direction)
Vector2D operator*(double scalar)
static Vector2D getEmptyVector()
VECTOR_TYPE
VECTOR_TYPE The Vector Type lorem Ipsum
Vector2D The Vector2D lorem Ipsum