geoff_geometry::Vector3d Class Reference

#include <geometry.h>

Public Member Functions

void arbitrary_axes (Vector3d &x, Vector3d &y)
 
void get (double xyz[3]) const
 
double * getBuffer ()
 
const double * getBuffer () const
 
double getx () const
 
double gety () const
 
double getz () const
 
double magnitude (void) const
 
double magnitudeSq (void) const
 
double normalise ()
 
bool operator!= (const Vector3d &v) const
 
double operator* (const Vector3d &v) const
 
const Vector3doperator*= (double c)
 
Point3d operator+ (const Point3d &p) const
 
Vector3d operator+ (const Vector3d &v) const
 
const Vector3doperator+= (const Vector3d &v)
 
Vector3d operator- (const Vector3d &v) const
 
const Vector3d operator- (void) const
 
const Vector3doperator-= (const Vector3d &v)
 
bool operator== (const Vector3d &v) const
 
const Vector3d operator^ (const Vector3d &v) const
 
void putx (double x)
 
void puty (double y)
 
void putz (double z)
 
int setCartesianAxes (Vector3d &b, Vector3d &c)
 
void Transform (const Matrix &m)
 
 Vector3d ()
 
 Vector3d (const double *x)
 
 Vector3d (const double *x0, const double *x1)
 
 Vector3d (const Point3d &p)
 
 Vector3d (const Point3d &p0, const Point3d &p1)
 
 Vector3d (const Vector2d &v)
 
 Vector3d (double x, double y, double z=0)
 

Friends

const Vector3d operator* (const Vector3d &v, double c)
 
const Vector3d operator* (double c, const Vector3d &v)
 
const Vector3d operator/ (const Vector3d &v, double c)
 
wostream & operator<< (wostream &op, Vector3d &v)
 

Constructor & Destructor Documentation

◆ Vector3d() [1/7]

geoff_geometry::Vector3d::Vector3d ( )

Referenced by operator+(), operator-(), and operator^().

◆ Vector3d() [2/7]

geoff_geometry::Vector3d::Vector3d ( double  x,
double  y,
double  z = 0 
)

◆ Vector3d() [3/7]

geoff_geometry::Vector3d::Vector3d ( const double *  x)

◆ Vector3d() [4/7]

geoff_geometry::Vector3d::Vector3d ( const double *  x0,
const double *  x1 
)

◆ Vector3d() [5/7]

geoff_geometry::Vector3d::Vector3d ( const Point3d p0,
const Point3d p1 
)

◆ Vector3d() [6/7]

geoff_geometry::Vector3d::Vector3d ( const Point3d p)

◆ Vector3d() [7/7]

geoff_geometry::Vector3d::Vector3d ( const Vector2d v)

Member Function Documentation

◆ arbitrary_axes()

void Vector3d::arbitrary_axes ( Vector3d x,
Vector3d y 
)

References getx(), and gety().

Referenced by setCartesianAxes().

◆ get()

void geoff_geometry::Vector3d::get ( double  xyz[3]) const

◆ getBuffer() [1/2]

double * geoff_geometry::Vector3d::getBuffer ( )

◆ getBuffer() [2/2]

const double * geoff_geometry::Vector3d::getBuffer ( ) const

◆ getx()

double geoff_geometry::Vector3d::getx ( ) const

◆ gety()

double geoff_geometry::Vector3d::gety ( ) const

◆ getz()

◆ magnitude()

◆ magnitudeSq()

double geoff_geometry::Vector3d::magnitudeSq ( void  ) const

Referenced by geoff_geometry::DistSq().

◆ normalise()

double geoff_geometry::Vector3d::normalise ( )

◆ operator!=()

bool geoff_geometry::Vector3d::operator!= ( const Vector3d v) const

◆ operator*()

double geoff_geometry::Vector3d::operator* ( const Vector3d v) const

◆ operator*=()

const Vector3d & geoff_geometry::Vector3d::operator*= ( double  c)

◆ operator+() [1/2]

Point3d geoff_geometry::Vector3d::operator+ ( const Point3d p) const

◆ operator+() [2/2]

Vector3d geoff_geometry::Vector3d::operator+ ( const Vector3d v) const

References Vector3d().

◆ operator+=()

const Vector3d & geoff_geometry::Vector3d::operator+= ( const Vector3d v)

◆ operator-() [1/2]

Vector3d geoff_geometry::Vector3d::operator- ( const Vector3d v) const

References Vector3d().

◆ operator-() [2/2]

const Vector3d geoff_geometry::Vector3d::operator- ( void  ) const

References Vector3d().

◆ operator-=()

const Vector3d & geoff_geometry::Vector3d::operator-= ( const Vector3d v)

◆ operator==()

bool geoff_geometry::Vector3d::operator== ( const Vector3d v) const

◆ operator^()

const Vector3d geoff_geometry::Vector3d::operator^ ( const Vector3d v) const

References Vector3d().

◆ putx()

void geoff_geometry::Vector3d::putx ( double  x)

◆ puty()

void geoff_geometry::Vector3d::puty ( double  y)

◆ putz()

void geoff_geometry::Vector3d::putz ( double  z)

◆ setCartesianAxes()

int Vector3d::setCartesianAxes ( Vector3d b,
Vector3d c 
)

◆ Transform()

void Vector3d::Transform ( const Matrix m)

References normalise().

Friends And Related Function Documentation

◆ operator* [1/2]

const Vector3d operator* ( const Vector3d v,
double  c 
)
friend

◆ operator* [2/2]

const Vector3d operator* ( double  c,
const Vector3d v 
)
friend

◆ operator/

const Vector3d operator/ ( const Vector3d v,
double  c 
)
friend

◆ operator<<

wostream & operator<< ( wostream &  op,
Vector3d v 
)
friend

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