QNANO
|
Class to store positions and to handle operations on 3d vectors. More...
#include <Vec3d.h>
Public Member Functions | |
void | set (double x, double y, double z) |
void | set (const Vec3d &other) |
double | norm2 () const |
double | norm () const |
void | normalize () |
double & | operator[] (const size_t i) |
double | operator[] (const size_t i) const |
Vec3d & | operator= (const Vec3d &v2) |
Vec3d & | operator+= (const Vec3d &other) |
Vec3d & | operator-= (const Vec3d &other) |
Vec3d & | operator*= (double d) |
Vec3d & | operator/= (double d) |
Vec3d () | |
Class to store positions and to handle operations on 3d vectors. | |
Vec3d (double x, double y, double z) | |
Vec3d (const Vec3d &v2) | |
void | set (double x, double y, double z) |
void | set (const Vec3d &other) |
double | norm2 () const |
double | norm () const |
void | normalize () |
double & | operator[] (const size_t i) |
double | operator[] (const size_t i) const |
Vec3d & | operator= (const Vec3d &v2) |
Vec3d & | operator+= (const Vec3d &other) |
Vec3d & | operator-= (const Vec3d &other) |
Vec3d & | operator*= (double d) |
Vec3d & | operator/= (double d) |
Vec3d (double x, double y, double z) | |
Vec3d (const Vec3d &v2) | |
Public Attributes | |
double | v [3] |
Actual vector elements: | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Vec3d &v) |
std::ostream & | operator<< (std::ostream &os, const Vec3d &v) |
Class to store positions and to handle operations on 3d vectors.