#include <Vec3d.h>
Public Member Functions | |
| H3D_API_EXCEPTION (Vec3dNormalizeError) | |
| Exception thrown when error while normalizing vector types. | |
| Vec3d () | |
| Default constructor. | |
| Vec3d (H3DDouble _x, H3DDouble _y, H3DDouble _z) | |
| Constructor. | |
| Vec3d (const Vec3f &v) | |
| Conversion from Vec3f. | |
| H3DDouble | dotProduct (const Vec3d &v) const |
| Returns the dot product between this Vec3d and v. | |
| Vec3d | crossProduct (const Vec3d &v) const |
| Returns the cross product between this Vec3d and v. | |
| void | normalize () |
| Normalize the vector to be of length 1. | |
| void | normalizeSafe () |
| Normalize the vector to be of length 1. | |
| H3DDouble | lengthSqr () |
| Returns the length squeared of the vector. | |
| H3DDouble | length () |
| Returns the length of the vector. | |
| H3DDouble & | operator[] (int i) |
| const H3DDouble & | operator[] (int i) const |
Public Attributes | |
| H3DDouble | x |
| The public values of the vector. | |
| H3DDouble | y |
| H3DDouble | z |
The values of the Vec3d are H3DDouble.
|
|
Returns the cross product between this Vec3d and v. The operator* operator can also be used to get the dot product between two vectors. |
|
|
Returns the dot product between this Vec3d and v. The operator* operator can also be used to get the dot product between two vectors. |
|
|
Normalize the vector to be of length 1.
|
|
|
Normalize the vector to be of length 1. If the vector is of zero length nothing will be done. |
1.4.5