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 sub(QScriptValue _vector)
Subtracts another vector from this vector.
void multiply(QScriptValue _scalar)
Multiplies the given vector with the scalar.
QScriptValue sprod(QScriptValue _vector)
Calculate scalar product.
void zero()
Resets all components of the vector to zero.
QScriptValue norm()
Calculate the Euclidean norm of the vector.
void normalize()
Normalize the vector.
QScriptValue sqrnorm()
Calculate the squared Euclidean norm of the vector.
void add(QScriptValue _vector)
Adds another vector to this vector.