A 2D vector.
More...
#include <Vector2d.h>
|
double | x |
| x component of the vector.
|
|
double | y |
| y component of the vector.
|
|
A 2D vector.
A 2d vector of doubles
hb::Vector2d::Vector2d |
( |
| ) |
|
|
inline |
Default constructor.
All values to 0.
hb::Vector2d::Vector2d |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
inline |
Contruct a Vector2d from two doubles.
- Parameters
-
x | Value of x component. |
y | Value of y component. |
hb::Vector2d::Vector2d |
( |
const Vector2d & |
v | ) |
|
|
inline |
Copy constructor.
- Parameters
-
double hb::Vector2d::module |
( |
| ) |
const |
|
inline |
Vector2d hb::Vector2d::normalized |
( |
| ) |
const |
|
inline |
Get the vector normalied.
- Returns
- A new instance of Vector2d being the normalized version of the original.
The documentation for this class was generated from the following file: