72 #ifndef PROTOTYPEVEC3D_HH 73 #define PROTOTYPEVEC3D_HH 76 #include <QtCore/QObject> 77 #include <QtScript/QtScript> 104 void add(QScriptValue _vector);
110 void sub(QScriptValue _vector);
123 QScriptValue
sprod(QScriptValue _vector);
143 QString toString()
const;
148 #endif // PROTOTYPEVEC3D_HH void multiply(QScriptValue _scalar)
Multiplies the given vector with the scalar.
QScriptValue sqrnorm()
Calculate the squared Euclidean norm of the vector.
void normalize()
Normalize the vector.
void add(QScriptValue _vector)
Adds another vector to this vector.
void zero()
Resets all components of the vector to zero.
QScriptValue sprod(QScriptValue _vector)
Calculate scalar product.
void sub(QScriptValue _vector)
Subtracts another vector from this vector.
QScriptValue norm()
Calculate the Euclidean norm of the vector.