Implementation is in header file for better optimisaition. More...
Functions | |
| static void | forcefields::PotentialBase::divide (double v[], double const divisor) |
| Divide vector. | |
| static double * | forcefields::PotentialBase::crossProduct (const double v[], const double w[], double e[]) |
| Cross product. | |
| static double | forcefields::PotentialBase::dotProduct (double const v[], double const w[]) |
| Dot product. | |
| static void | forcefields::PotentialBase::multiply (double v[], double const factor) |
| Multiply vector. | |
| static double | forcefields::PotentialBase::norm (double const v[]) |
| Norm of 3D vector. | |
| static void | forcefields::PotentialBase::normalise (double v[]) |
| Normalise 3D vector \( \frac{\mathbf v}{ |\mathbf v|} \). | |
Implementation is in header file for better optimisaition.
|
inlinestaticprotected |
Cross product.
\( \mathbf e=\mathbf v \times \mathbf w \)
| [in] | v | 3D vector. |
| [in] | w | 3D vector. |
| [out] | e | Result. |
Definition at line 192 of file potential_base.hpp.
|
inlinestaticprotected |
Divide vector.
| [in,out] | v | Three-dimension vector to divide. |
| [in] | divisor | Divide v by divisor. |
Definition at line 204 of file potential_base.hpp.
|
inlinestaticprotected |
Dot product.
\( \mathbf v . \mathbf w \)
| [in] | v | 3D vector. |
| [in] | w | 3D vector. |
Definition at line 216 of file potential_base.hpp.
|
inlinestaticprotected |
Multiply vector.
| [in,out] | v | Three-dimension vector to multiply. |
| [in] | factor | Multiply v by factor. |
Definition at line 225 of file potential_base.hpp.
|
inlinestaticprotected |
Norm of 3D vector.
\( |\mathbf v| \)
| [in] | v | 3D vector. |
Definition at line 236 of file potential_base.hpp.
|
inlinestaticprotected |
Normalise 3D vector \( \frac{\mathbf v}{ |\mathbf v|} \).
| [in,out] | v | 3D vector to normalise. |
Definition at line 244 of file potential_base.hpp.