politopix  5.0.0
Point_Rn Class Reference

Creation of a n-coordinate geometric point designed to be shared by its neighbour faces. More...

#include <Point_Rn.h>

Collaboration diagram for Point_Rn:
Collaboration graph

Public Member Functions

 Point_Rn (unsigned int n)
 Create a n-coordinates point. More...
 
 Point_Rn (unsigned int n, double u)
 Fill the n-dimensional point with the constant u. More...
 
 Point_Rn (double u1, double u2, double u3)
 Create a 3-dimensional point. More...
 
virtual ~Point_Rn ()
 
double normalize ()
 
double distanceFrom (const Point_Rn &)
 
void setCoordinate (unsigned int i, double val)
 
double getCoordinate (unsigned int i) const
 
int dimension () const
 
void load (std::istream &this_istream)
 
void save (std::ostream &this_ostream) const
 
vector< double >::const_iterator begin () const
 
vector< double >::const_iterator end () const
 
const vector< double > & vect () const
 
void negate ()
 

Static Public Member Functions

static std::string concatStrings (int i, const std::string &functionName)
 Useful function to provide error message to the exception mechanism. More...
 
static std::string concatStrings (int i, double val, const std::string &functionName)
 Useful function to provide error message to the exception mechanism. More...
 

Protected Attributes

vector< double > _coordinates
 

Detailed Description

Creation of a n-coordinate geometric point designed to be shared by its neighbour faces.

Definition at line 34 of file Point_Rn.h.

Constructor & Destructor Documentation

◆ Point_Rn() [1/3]

Point_Rn::Point_Rn ( unsigned int  n)

Create a n-coordinates point.

Definition at line 30 of file Point_Rn.cpp.

◆ Point_Rn() [2/3]

Point_Rn::Point_Rn ( unsigned int  n,
double  u 
)

Fill the n-dimensional point with the constant u.

Definition at line 34 of file Point_Rn.cpp.

◆ Point_Rn() [3/3]

Point_Rn::Point_Rn ( double  u1,
double  u2,
double  u3 
)

Create a 3-dimensional point.

Definition at line 38 of file Point_Rn.cpp.

◆ ~Point_Rn()

Point_Rn::~Point_Rn ( )
virtual

Definition at line 45 of file Point_Rn.cpp.

Member Function Documentation

◆ begin()

vector<double>::const_iterator Point_Rn::begin ( ) const
inline

Definition at line 64 of file Point_Rn.h.

Here is the caller graph for this function:

◆ concatStrings() [1/2]

std::string Point_Rn::concatStrings ( int  i,
const std::string &  functionName 
)
static

Useful function to provide error message to the exception mechanism.

Definition at line 79 of file Point_Rn.cpp.

Here is the caller graph for this function:

◆ concatStrings() [2/2]

std::string Point_Rn::concatStrings ( int  i,
double  val,
const std::string &  functionName 
)
static

Useful function to provide error message to the exception mechanism.

Definition at line 93 of file Point_Rn.cpp.

◆ dimension()

int Point_Rn::dimension ( ) const
inline

Definition at line 58 of file Point_Rn.h.

◆ distanceFrom()

double Point_Rn::distanceFrom ( const Point_Rn P)

Definition at line 54 of file Point_Rn.cpp.

◆ end()

vector<double>::const_iterator Point_Rn::end ( ) const
inline

Definition at line 66 of file Point_Rn.h.

Here is the caller graph for this function:

◆ getCoordinate()

double Point_Rn::getCoordinate ( unsigned int  i) const

Definition at line 70 of file Point_Rn.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ load()

void Point_Rn::load ( std::istream &  this_istream)

Definition at line 109 of file Point_Rn.cpp.

Here is the call graph for this function:

◆ negate()

void Point_Rn::negate ( )
inline

Definition at line 70 of file Point_Rn.h.

◆ normalize()

double Point_Rn::normalize ( )

Definition at line 48 of file Point_Rn.cpp.

◆ save()

void Point_Rn::save ( std::ostream &  this_ostream) const

Definition at line 117 of file Point_Rn.cpp.

Here is the call graph for this function:

◆ setCoordinate()

void Point_Rn::setCoordinate ( unsigned int  i,
double  val 
)

Definition at line 61 of file Point_Rn.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vect()

const vector<double>& Point_Rn::vect ( ) const
inline

Definition at line 68 of file Point_Rn.h.

Member Data Documentation

◆ _coordinates

vector<double> Point_Rn::_coordinates
protected

Definition at line 80 of file Point_Rn.h.


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