QNANO
Public Member Functions | Public Attributes | Friends | List of all members
Vec3d Class Reference

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
 
Vec3doperator= (const Vec3d &v2)
 
Vec3doperator+= (const Vec3d &other)
 
Vec3doperator-= (const Vec3d &other)
 
Vec3doperator*= (double d)
 
Vec3doperator/= (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
 
Vec3doperator= (const Vec3d &v2)
 
Vec3doperator+= (const Vec3d &other)
 
Vec3doperator-= (const Vec3d &other)
 
Vec3doperator*= (double d)
 
Vec3doperator/= (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)
 

Detailed Description

Class to store positions and to handle operations on 3d vectors.


The documentation for this class was generated from the following files: