![]() |
libimgdoc2
|
#include <types.h>
Public Member Functions | |
Vector3dT () | |
Default constructor. All properties are set to zero. | |
Vector3dT (t x, t y, t z) | |
Vector3dT (const Point3dT< t > p) | |
Vector3dT< t > | Normalize () const |
t | AbsoluteValueSquared () const |
t | AbsoluteValue () const |
Static Public Member Functions | |
static Vector3dT< t > | Cross (const Vector3dT< t > &vectorA, const Vector3dT< t > &vectorB) |
static t | Dot (const Vector3dT< t > &vectorA, const Vector3dT< t > &vectorB) |
Public Attributes | |
t | x |
The component of the vector in x-direction. | |
t | y |
The component of the vector in y-direction. | |
t | z |
The component of the vector in z-direction. | |
Structure defining a vector in three dimensions.
t | Generic type parameter. |
|
inline |
Constructor.
x | The component of the vector in x-direction. |
y | The component of the vector in y-direction. |
z | The component of the vector in z-direction. |
|
inlineexplicit |
Constructor.
p | A Point3dT<t> to convert into a vector. |
|
inline |
Calculate the length of the vector.
|
inline |
Calculate the squared length of the vector.
|
inlinestatic |
Calculate the cross-product of two vectors.
vectorA | The first vector. |
vectorB | The second vector. |
|
inlinestatic |
Calculate the dot-product of two vectors.
vectorA | The first vector. |
vectorB | The second vector. |
|
inline |
Gets a normalized vector.