#include <Vector3.h>
Collaboration diagram for OpenCAL::Utils::Vector3:

Public Member Functions | |
| Vector3 (float x, float y, float z=0.0f) | |
| Vector3 (float *values) | |
| Vector3 (const Vector3 &source) | |
| Copy constructor. | |
| const float * | get () const |
| float | getX () const |
| float | getY () const |
| float | getZ () const |
| void | set (float x, float y, float z=0.0f) |
| void | set (float *values) |
| void | add (float x, float y, float z=0.0f) |
| void | add (float *values) |
| void | setX (float x) |
| void | setY (float y) |
| void | setZ (float z) |
| Vector3 | operator+ (const Vector3 &v) const |
| Vector addition. | |
| Vector3 | operator- (const Vector3 &v) const |
| Vector substraction. | |
| Vector3 | operator- () const |
| Negation. | |
| Vector3 | operator * (float factor) const |
| Scalar product. | |
| Vector3 | operator/ (float factor) const |
| Scalar division. | |
| void | operator+= (const Vector3 &v) |
| void | operator-= (const Vector3 &v) |
| void | operator *= (float factor) |
| void | operator/= (float factor) |
| bool | operator== (const Vector3 &v) |
| Equality. | |
| bool | operator!= (const Vector3 &v) |
| Inequality. | |
| operator const float * () const | |
| void | blend (float u, const Vector3 &dest) |
| void | blend (float u, const Vector3 &source, const Vector3 &dest) |
| Vector3 | blended (float u, const Vector3 &dest) const |
| Vector3 | blended (float u, const Vector3 &source, const Vector3 &dest) const |
| float | dotProduct (const Vector3 &v) const |
| Vector3 | crossProduct (const Vector3 &v) const |
| float | length () const |
| float | squaredLength () const |
| float | distance (const Vector3 &v) const |
| float | squaredDistance (const Vector3 &v) const |
| Vector3 | normalized () const |
| void | normalize () |
| void | rotate (const Quaternion &rot) |
| Vector3 | rotated (const Quaternion &rot) const |
| void | rotated (const Quaternion &rot, Vector3 *result) const |
| Matrix33 | star () const |
| void | print () const |
Static Public Attributes | |
| Vector3 | zero |
Protected Attributes | |
| float | m_values [3] |
Friends | |
| Vector3 | operator * (float factor, const Vector3 &v) |
| Vector3 | operator/ (float factor, const Vector3 &v) |
| std::ostream & | operator<< (std::ostream &stream, const Vector3 &v) |
Definition at line 30 of file Vector3.h.
1.3.8