The Vector class represents a vector (x,y,z) in 3D space.
More...
#include <vector.h>
For the sake of simplicity, Vector is implemented as a typedef of Qt's QVector3D.
Example of use:
#include "point.h"
#include "vector.h"
float x = u.x();
float y = u.y();
float z = u.z();
u.setX(2.0);
u.setY(4.0);
u.setZ(2.0);
float len = u.length();
u.normalize();
v = u.normalized();
w = u + v;
w = u - v;
w = 2.0*u;
float dot = dotProduct(u, v);
w = crossProduct(u, v);