CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
Definition at line 41 of file CepsVertex.hpp.
#include <CepsVertex.hpp>
Public Member Functions | |
CepsVertex (const CepsReal &x=0.0, const CepsReal &y=0.0, const CepsReal &z=0.0) | |
Constructor with coordinates. More... | |
CepsVertex (const CepsReal3D &coor) | |
Constructor with coordinates. More... | |
CepsVertex (const CepsVertex &)=default | |
Copy constructor. More... | |
CepsVertex (CepsVertex &&) noexcept=default | |
Copy constructor. More... | |
CepsVertex & | operator= (const CepsVertex &)=default |
Assignment operator. More... | |
CepsVertex & | operator= (CepsVertex &&) noexcept=default |
Assignment operator. More... | |
CepsVertex & | operator= (const CepsMathVertices &vec) |
Assignment operator from Eigen format. More... | |
CepsVertex & | operator= (const CepsReal3D &vec) |
Assignment operator. More... | |
virtual | ~CepsVertex ()=default |
Destructor. More... | |
operator CepsMathVertex () const | |
Cast operator into CepsMathVertex. More... | |
void | setX (const CepsReal &x) |
Set vertex x coordinate. More... | |
void | setY (const CepsReal &y) |
Set vertex y coordinate. More... | |
void | setZ (const CepsReal &z) |
Set vertex z coordinate. More... | |
void | setCoordinate (const CepsUInt &dim, const CepsReal &coor) |
Set the three coordinates. More... | |
void | setCoordinates (const CepsReal &x, const CepsReal &y=0., const CepsReal &z=0.) |
Set the 3 coordinates at once. More... | |
void | setCoordinates (const CepsReal3D &coor) |
Set the three coordinates. More... | |
void | setCoordinates (const CepsReal *coors, const CepsUInt &n) |
Set the three coordinates. More... | |
void | scale (const CepsReal &scaleFactor) |
Scale all coordinates of this node. More... | |
const CepsReal & | x () const |
Vertex x coordinate. More... | |
const CepsReal & | y () const |
Vertex y coordinate. More... | |
const CepsReal & | z () const |
Vertex z coordinate. More... | |
CepsReal & | getCoordinate (const CepsSize &dim) |
Get coordinate of dimension 0 1 2, read & write. More... | |
const CepsReal & | getCoordinate (const CepsSize &dim) const |
Get coordinate of dimension 0 1 2, read only. More... | |
CepsReal & | operator[] (const CepsUInt &dim) |
Get coordinate of dimension 0 1 2, read & write. More... | |
const CepsReal & | operator[] (const CepsUInt &dim) const |
Get coordinate of dimension 0 1 2, read only. More... | |
CepsReal3D & | getCoordinates () |
Get three coordinates, read & write. More... | |
const CepsReal3D & | getCoordinates () const |
Get three coordinates, read only. More... | |
CepsMathVertex | getCoordinatesForEigen () const |
Get three coordinates. More... | |
CepsBool | equals (const CepsVertex &vert, const CepsReal &errorFactor=1.0) |
Check for coordinates equality. More... | |
CepsReal | norm2 (const CepsSize &dim=3) const |
Euclidian norm of coordinates. More... | |
CepsReal | normp (const CepsInt &p, const CepsSize &dim=3) const |
Norm p (for p =-1, 1, 2, etc) with p=-1 gives the inf norm. More... | |
CepsReal | dot (const CepsVertex &other, const CepsSize &dim=3) const |
Scalar product. dim restricts which components are used (1:(x), 2:(x,y), 3:(x,y,z)) More... | |
Private Attributes | |
CepsReal3D | m_coor |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CepsVertex &vertex) |
Display stream operator. More... | |
CepsVertex::CepsVertex | ( | const CepsReal & | x = 0.0 , |
const CepsReal & | y = 0.0 , |
||
const CepsReal & | z = 0.0 |
||
) |
Constructor with coordinates.
Definition at line 38 of file CepsVertex.cpp.
|
explicit |
Constructor with coordinates.
Definition at line 43 of file CepsVertex.cpp.
|
default |
Copy constructor.
|
defaultnoexcept |
Copy constructor.
|
virtualdefault |
Destructor.
CepsReal CepsVertex::dot | ( | const CepsVertex & | other, |
const CepsSize & | dim = 3 |
||
) | const |
Scalar product. dim restricts which components are used (1:(x), 2:(x,y), 3:(x,y,z))
Definition at line 239 of file CepsVertex.cpp.
CepsBool CepsVertex::equals | ( | const CepsVertex & | vert, |
const CepsReal & | errorFactor = 1.0 |
||
) |
Check for coordinates equality.
[in] | vert | the vertex to check against |
[in] | errorFactor | estimate of the accumulated error by iterative computation. Default to 1.0 (no accumulation) |
Definition at line 191 of file CepsVertex.cpp.
Get coordinate of dimension 0 1 2, read & write.
Definition at line 143 of file CepsVertex.cpp.
Get coordinate of dimension 0 1 2, read only.
Definition at line 152 of file CepsVertex.cpp.
CepsReal3D & CepsVertex::getCoordinates | ( | ) |
Get three coordinates, read & write.
Definition at line 173 of file CepsVertex.cpp.
const CepsReal3D & CepsVertex::getCoordinates | ( | ) | const |
Get three coordinates, read only.
Definition at line 179 of file CepsVertex.cpp.
CepsMathVertex CepsVertex::getCoordinatesForEigen | ( | ) | const |
Get three coordinates.
Definition at line 185 of file CepsVertex.cpp.
Euclidian norm of coordinates.
Definition at line 201 of file CepsVertex.cpp.
Norm p (for p =-1, 1, 2, etc) with p=-1 gives the inf norm.
p | order |
dim | dimension to consider |
Definition at line 217 of file CepsVertex.cpp.
CepsVertex::operator CepsMathVertex | ( | ) | const |
Cast operator into CepsMathVertex.
Definition at line 48 of file CepsVertex.cpp.
|
defaultnoexcept |
Assignment operator.
CepsVertex& CepsVertex::operator= | ( | const CepsMathVertices & | vec | ) |
Assignment operator from Eigen format.
CepsVertex& CepsVertex::operator= | ( | const CepsReal3D & | vec | ) |
Assignment operator.
|
default |
Assignment operator.
Get coordinate of dimension 0 1 2, read & write.
Definition at line 161 of file CepsVertex.cpp.
Get coordinate of dimension 0 1 2, read only.
Definition at line 167 of file CepsVertex.cpp.
void CepsVertex::scale | ( | const CepsReal & | scaleFactor | ) |
Scale all coordinates of this node.
Definition at line 110 of file CepsVertex.cpp.
Set the three coordinates.
Definition at line 76 of file CepsVertex.cpp.
void CepsVertex::setCoordinates | ( | const CepsReal & | x, |
const CepsReal & | y = 0. , |
||
const CepsReal & | z = 0. |
||
) |
Set the 3 coordinates at once.
Definition at line 86 of file CepsVertex.cpp.
Set the three coordinates.
Definition at line 100 of file CepsVertex.cpp.
void CepsVertex::setCoordinates | ( | const CepsReal3D & | coor | ) |
Set the three coordinates.
Definition at line 93 of file CepsVertex.cpp.
void CepsVertex::setX | ( | const CepsReal & | x | ) |
Set vertex x coordinate.
Definition at line 55 of file CepsVertex.cpp.
void CepsVertex::setY | ( | const CepsReal & | y | ) |
Set vertex y coordinate.
Definition at line 62 of file CepsVertex.cpp.
void CepsVertex::setZ | ( | const CepsReal & | z | ) |
Set vertex z coordinate.
Definition at line 69 of file CepsVertex.cpp.
const CepsReal & CepsVertex::x | ( | ) | const |
Vertex x coordinate.
Definition at line 125 of file CepsVertex.cpp.
const CepsReal & CepsVertex::y | ( | ) | const |
Vertex y coordinate.
Definition at line 131 of file CepsVertex.cpp.
const CepsReal & CepsVertex::z | ( | ) | const |
Vertex z coordinate.
Definition at line 137 of file CepsVertex.cpp.
|
friend |
Display stream operator.
Operator overloading that enables output operation on a stream.
os | stream |
vertex | the vertex to view |
Definition at line 253 of file CepsVertex.cpp.
|
private |
Definition at line 201 of file CepsVertex.hpp.