OpenMEEG
Public Member Functions | Private Attributes | Friends | List of all members
OpenMEEG::Vect3 Class Reference

Vect3. More...

#include <vect3.h>

Inheritance diagram for OpenMEEG::Vect3:
Inheritance graph
[legend]

Public Member Functions

 Vect3 ()
 
 Vect3 (const double &xx, const double &yy, const double &zz)
 
 Vect3 (const double &a)
 
 ~Vect3 ()
 
Vect3operator= (const Vect3 &v)
 
 Vect3 (const Vect3 &v)
 
double & x ()
 
const double & x () const
 
double & y ()
 
const double & y () const
 
double & z ()
 
const double & z () const
 
double operator* (const Vect3 &v) const
 
double operator< (const Vect3 &v) const
 
double norm () const
 
double norm2 () const
 
bool operator== (const Vect3 &v) const
 
bool operator!= (const Vect3 &v) const
 
void operator+= (const Vect3 &v)
 
void operator-= (const Vect3 &v)
 
void operator*= (const double &d)
 
void operator/= (const double &d)
 
void multadd (const double &d, const Vect3 &v)
 
Vect3 operator+ (const Vect3 &v) const
 
Vect3 operator- (const Vect3 &v) const
 
Vect3 operator^ (const Vect3 &v) const
 
Vect3 operator* (const double &d) const
 
Vect3 operator/ (const double &d) const
 
double operator() (const int i) const
 
double & operator() (const int i)
 
Vect3 operator- ()
 
double det (const Vect3 &y2, const Vect3 &y3) const
 
double solangl (const Vect3 &v1, const Vect3 &v2, const Vect3 &v3) const
 
void normalize ()
 

Private Attributes

double m [3]
 Coordinates of the vector. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const Vect3 &v)
 
std::istream & operator>> (std::istream &is, Vect3 &v)
 

Detailed Description

Vect3.

Mesh Class

Definition at line 62 of file vect3.h.

Constructor & Destructor Documentation

◆ Vect3() [1/4]

OpenMEEG::Vect3::Vect3 ( )
inline

Definition at line 68 of file vect3.h.

◆ Vect3() [2/4]

OpenMEEG::Vect3::Vect3 ( const double &  xx,
const double &  yy,
const double &  zz 
)
inline

Definition at line 69 of file vect3.h.

◆ Vect3() [3/4]

OpenMEEG::Vect3::Vect3 ( const double &  a)
inline

Definition at line 70 of file vect3.h.

◆ ~Vect3()

OpenMEEG::Vect3::~Vect3 ( )
inline

Definition at line 71 of file vect3.h.

◆ Vect3() [4/4]

OpenMEEG::Vect3::Vect3 ( const Vect3 v)
inline

Definition at line 78 of file vect3.h.

Member Function Documentation

◆ operator=()

Vect3& OpenMEEG::Vect3::operator= ( const Vect3 v)
inline

Definition at line 73 of file vect3.h.

◆ x() [1/2]

double& OpenMEEG::Vect3::x ( )
inline

Definition at line 84 of file vect3.h.

◆ x() [2/2]

const double& OpenMEEG::Vect3::x ( ) const
inline

Definition at line 85 of file vect3.h.

◆ y() [1/2]

double& OpenMEEG::Vect3::y ( )
inline

Definition at line 87 of file vect3.h.

◆ y() [2/2]

const double& OpenMEEG::Vect3::y ( ) const
inline

Definition at line 88 of file vect3.h.

◆ z() [1/2]

double& OpenMEEG::Vect3::z ( )
inline

Definition at line 90 of file vect3.h.

◆ z() [2/2]

const double& OpenMEEG::Vect3::z ( ) const
inline

Definition at line 91 of file vect3.h.

◆ operator*() [1/2]

double OpenMEEG::Vect3::operator* ( const Vect3 v) const
inline

Definition at line 93 of file vect3.h.

◆ operator<()

double OpenMEEG::Vect3::operator< ( const Vect3 v) const
inline

Definition at line 94 of file vect3.h.

◆ norm()

double OpenMEEG::Vect3::norm ( ) const
inline

Definition at line 96 of file vect3.h.

◆ norm2()

double OpenMEEG::Vect3::norm2 ( ) const
inline

Definition at line 97 of file vect3.h.

◆ operator==()

bool OpenMEEG::Vect3::operator== ( const Vect3 v) const
inline

Definition at line 99 of file vect3.h.

◆ operator!=()

bool OpenMEEG::Vect3::operator!= ( const Vect3 v) const
inline

Definition at line 100 of file vect3.h.

◆ operator+=()

void OpenMEEG::Vect3::operator+= ( const Vect3 v)
inline

Definition at line 102 of file vect3.h.

◆ operator-=()

void OpenMEEG::Vect3::operator-= ( const Vect3 v)
inline

Definition at line 103 of file vect3.h.

◆ operator*=()

void OpenMEEG::Vect3::operator*= ( const double &  d)
inline

Definition at line 104 of file vect3.h.

◆ operator/=()

void OpenMEEG::Vect3::operator/= ( const double &  d)
inline

Definition at line 105 of file vect3.h.

◆ multadd()

void OpenMEEG::Vect3::multadd ( const double &  d,
const Vect3 v 
)
inline

Definition at line 107 of file vect3.h.

◆ operator+()

Vect3 OpenMEEG::Vect3::operator+ ( const Vect3 v) const
inline

Definition at line 109 of file vect3.h.

◆ operator-() [1/2]

Vect3 OpenMEEG::Vect3::operator- ( const Vect3 v) const
inline

Definition at line 110 of file vect3.h.

◆ operator^()

Vect3 OpenMEEG::Vect3::operator^ ( const Vect3 v) const
inline

Definition at line 111 of file vect3.h.

◆ operator*() [2/2]

Vect3 OpenMEEG::Vect3::operator* ( const double &  d) const
inline

Definition at line 112 of file vect3.h.

◆ operator/()

Vect3 OpenMEEG::Vect3::operator/ ( const double &  d) const
inline

Definition at line 113 of file vect3.h.

◆ operator()() [1/2]

double OpenMEEG::Vect3::operator() ( const int  i) const
inline

Definition at line 115 of file vect3.h.

◆ operator()() [2/2]

double& OpenMEEG::Vect3::operator() ( const int  i)
inline

Definition at line 120 of file vect3.h.

◆ operator-() [2/2]

Vect3 OpenMEEG::Vect3::operator- ( )
inline

Definition at line 125 of file vect3.h.

◆ det()

double OpenMEEG::Vect3::det ( const Vect3 y2,
const Vect3 y3 
) const
inline

Definition at line 127 of file vect3.h.

◆ solangl()

double OpenMEEG::Vect3::solangl ( const Vect3 v1,
const Vect3 v2,
const Vect3 v3 
) const
inline

Definition at line 131 of file vect3.h.

◆ normalize()

void OpenMEEG::Vect3::normalize ( )
inline

Definition at line 143 of file vect3.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Vect3 v 
)
friend

Definition at line 157 of file vect3.h.

◆ operator>>

std::istream& operator>> ( std::istream &  is,
Vect3 v 
)
friend

Definition at line 153 of file vect3.h.

Member Data Documentation

◆ m

double OpenMEEG::Vect3::m[3]
private

Coordinates of the vector.

Definition at line 64 of file vect3.h.


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