42 {
return sqrt(pow(x, 2) + pow(y, 2));}
Vector2d(const Vector2d &v)
Copy constructor.
Definition: Vector2d.h:35
double y
y component of the vector.
Definition: Vector2d.h:18
Vector2d normalized() const
Get the vector normalied.
Definition: Vector2d.h:48
Vector2d(double x, double y)
Contruct a Vector2d from two doubles.
Definition: Vector2d.h:30
Definition: Box2DPlugin.h:6
double x
x component of the vector.
Definition: Vector2d.h:17
A 2D vector.
Definition: Vector2d.h:14
Vector2d()
Default constructor.
Definition: Vector2d.h:24
double module() const
Get the module of the Vector2d.
Definition: Vector2d.h:41