A 3D vector.
More...
#include <Vector3d.h>
|
double | x |
| x component of the vector.
|
|
double | y |
| y component of the vector.
|
|
double | z |
| z component of the vector.
|
|
hb::Vector3d::Vector3d |
( |
| ) |
|
|
inline |
Default constructor.
All values to 0.
hb::Vector3d::Vector3d |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
|
inline |
Contruct a Vector2d from two doubles.
- Parameters
-
x | Value of x component. |
y | Value of y component. |
z | Value of z component. |
hb::Vector3d::Vector3d |
( |
const Vector3d & |
v | ) |
|
|
inline |
Copy constructor.
- Parameters
-
hb::Vector3d::Vector3d |
( |
const Vector2d & |
v | ) |
|
|
inline |
Implicit cast from Vector2d (z = 0).
- Parameters
-
hb::Vector3d::Vector3d |
( |
const Vector2d & |
v, |
|
|
double |
z |
|
) |
| |
|
inline |
Implicit cast from Vector2d setting the z component.
- Parameters
-
double hb::Vector3d::module |
( |
| ) |
const |
|
inline |
Multiply two vectors component by component.
- Returns
- The resulting Vector3d.
Vector3d hb::Vector3d::normalized |
( |
| ) |
const |
|
inline |
Get the vector normalied.
- Returns
- A new instance of Vector3d being the normalized version of the original.
Vector3d hb::Vector3d::rotatedXY |
( |
double |
degrees | ) |
const |
Get the vector rotated over the XY plane.
- Parameters
-
degrees | Number of degrees to be rotated. |
- Returns
- A new instance of Vector3d with the vector rotated.
Vector3d hb::Vector3d::rotatedXZ |
( |
double |
degrees | ) |
const |
Get the vector rotated over the XZ plane.
- Parameters
-
degrees | Number of degrees to be rotated. |
- Returns
- A new instance of Vector3d with the vector rotated.
Vector3d hb::Vector3d::rotatedYZ |
( |
double |
degrees | ) |
const |
Get the vector rotated over the YZ plane.
- Parameters
-
degrees | Number of degrees to be rotated. |
- Returns
- A new instance of Vector3d with the vector rotated.
The documentation for this class was generated from the following file: