|
Jafar
|
generic vector with operators for math operations More...
generic vector with operators for math operations
Definition at line 20 of file mathVect.hpp.
#include <mathVect.hpp>
Public Member Functions | |
| Vect (const int dim) | |
| Vect (const Vect &v) | |
| bool | operator== (const Vect &other) const |
| Vect | operator+ (const Vect &other) const |
| Vect | operator- (const Vect &other) const |
| Vect | operator- () const |
| double | operator* (const Vect &other) const |
| scalar product, s=a.b | |
| double | operator^ (const Vect &other) const |
| vector product other z, s=(a^b).z (dim 2 or 3) | |
| Vect | operator/ (const double d) const |
| division by a scalar number | |
| double | norm () const |
| euclidian norm | |
| Vect | orth () const |
| orthogonal vector (only for 3D vectors) | |
| std::vector< double > | get () const |
| double | get (const int index) const |
| void | set (const int index, const double value) |
| void | set (const double x, const double y) |
| void | set (const double x, const double y, const double z) |
| void | set (const Vect &other) |
| int | size () const |
| double | x () const |
| double | y () const |
| double | z () const |
Private Attributes | |
| std::vector< double > | data |
| Generated on Wed Oct 15 2014 00:37:44 for Jafar by doxygen 1.7.6.1 |
|