#include <OpenFlipper/Scripting/scriptPrototypes/prototypeVec4d.hh>
|
| void | multiply (QScriptValue _scalar) |
| | Multiplies the given vector with the scalar.
|
| |
| void | add (QScriptValue _vector) |
| | Adds another vector to this vector.
|
| |
| void | sub (QScriptValue _vector) |
| | Subtracts another vector from this vector.
|
| |
| void | zero () |
| | Resets all components of the vector to zero.
|
| |
| QScriptValue | sprod (QScriptValue _vector) |
| | Calculate scalar product.
|
| |
| QScriptValue | norm () |
| | Calculate the Euclidean norm of the vector.
|
| |
| QScriptValue | sqrnorm () |
| | Calculate the squared Euclidean norm of the vector.
|
| |
| void | normalize () |
| | Normalize the vector.
|
| |
| QString | toString () const |
| |
This class wraps the Vec4d to the scripting language
Vector data type for scripting
Definition at line 86 of file prototypeVec4d.hh.
◆ prototypeVec4d()
| prototypeVec4d::prototypeVec4d |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ add
| void prototypeVec4d::add |
( |
QScriptValue |
_vector | ) |
|
|
slot |
Adds another vector to this vector.
- Parameters
-
| _vector | Vector that should be added |
Definition at line 69 of file prototypeVec4d.cc.
◆ multiply
| void prototypeVec4d::multiply |
( |
QScriptValue |
_scalar | ) |
|
|
slot |
Multiplies the given vector with the scalar.
- Parameters
-
| _scalar | Scalar value that gets multiplied |
Definition at line 62 of file prototypeVec4d.cc.
◆ norm
| QScriptValue prototypeVec4d::norm |
( |
| ) |
|
|
slot |
Calculate the Euclidean norm of the vector.
- Returns
- Norm of the vector
Definition at line 99 of file prototypeVec4d.cc.
◆ normalize
| void prototypeVec4d::normalize |
( |
| ) |
|
|
slot |
◆ sprod
| QScriptValue prototypeVec4d::sprod |
( |
QScriptValue |
_vector | ) |
|
|
slot |
Calculate scalar product.
- Parameters
-
| _vector | Second vector for scalar product (Can be the vector itself) |
- Returns
- Scalar product value
Definition at line 91 of file prototypeVec4d.cc.
◆ sqrnorm
| QScriptValue prototypeVec4d::sqrnorm |
( |
| ) |
|
|
slot |
Calculate the squared Euclidean norm of the vector.
- Returns
- Squared norm of the vector
Definition at line 106 of file prototypeVec4d.cc.
◆ sub
| void prototypeVec4d::sub |
( |
QScriptValue |
_vector | ) |
|
|
slot |
Subtracts another vector from this vector.
- Parameters
-
| _vector | Vector that should be subtracted |
Definition at line 77 of file prototypeVec4d.cc.
◆ toString
| QString prototypeVec4d::toString |
( |
| ) |
const |
|
slot |
◆ zero
| void prototypeVec4d::zero |
( |
| ) |
|
|
slot |
The documentation for this class was generated from the following files: