71 #ifndef PROTOTYPEVEC4D_HH 72 #define PROTOTYPEVEC4D_HH 75 #include <QtCore/QObject> 76 #include <QtScript/QtScript> 103 void add(QScriptValue _vector);
109 void sub(QScriptValue _vector);
122 QScriptValue
sprod(QScriptValue _vector);
142 QString toString()
const;
147 #endif // PROTOTYPEVEC4D_HH void normalize()
Normalize the vector.
QScriptValue norm()
Calculate the Euclidean norm of the vector.
void multiply(QScriptValue _scalar)
Multiplies the given vector with the scalar.
void zero()
Resets all components of the vector to zero.
void add(QScriptValue _vector)
Adds another vector to this vector.
QScriptValue sqrnorm()
Calculate the squared Euclidean norm of the vector.
void sub(QScriptValue _vector)
Subtracts another vector from this vector.
QScriptValue sprod(QScriptValue _vector)
Calculate scalar product.