50 Coord(
const double& x,
const double& y = 0.,
const double& z = 0.);
64 void setXYZ(
const double& x,
const double& y,
const double& z);
67 void setX(
const double& x);
70 void setY(
const double& y);
73 void setZ(
const double& z);
75 const double&
getX()
const {
return m_x; }
77 const double&
getY()
const {
return m_y; }
79 const double&
getZ()
const {
return m_z; }
Coord velocity
Definition Coord.cpp:34
Coord coordIdentity
Definition Coord.cpp:36
Coord vFaceToElt
Definition Coord.cpp:35
Coord coordBuff
Definition Coord.cpp:33
Coord operator-(const Coord &a, const Coord &b)
Definition Coord.cpp:338
Coord operator+(const Coord &a, const Coord &b)
Definition Coord.cpp:329
Coord operator*(const double &scalar, const Coord &a)
Definition Coord.cpp:320
Class for a coordinate system object such as coordinates of the vertex or a vector.
Definition Coord.h:43
void changeSign()
Change the sign if the present vector.
Definition Coord.cpp:168
const double & getX() const
Return the value in the x-direction of the Coord object.
Definition Coord.h:75
double norm() const
Return the value of the norm of the Coord object.
Definition Coord.cpp:81
~Coord()
Definition Coord.cpp:48
const double & getY() const
Return the value in the y-direction of the Coord object.
Definition Coord.h:77
Coord & operator+=(const double &scalar)
Definition Coord.cpp:241
void printInfo() const
Print the information of the vector.
Definition Coord.cpp:227
void reverseProjection(const Coord &normal, const Coord &tangent, const Coord &binormal)
Reverse projection in the absolute Cartesian coordinate system.
Definition Coord.cpp:134
Coord abs() const
Return a Coord object with absolute values of each component.
Definition Coord.cpp:89
double m_y
Value in the x-direction.
Definition Coord.h:161
void setY(const double &y)
Set the value in the y-direction of the Coord object.
Definition Coord.cpp:73
void setX(const double &x)
Set the value in the x-direction of the Coord object.
Definition Coord.cpp:69
void setZ(const double &z)
Set the value in the z-direction of the Coord object.
Definition Coord.cpp:77
static Coord crossProduct(const Coord &v1, const Coord &v2)
Return the cross product bewteen two vectors.
Definition Coord.cpp:158
static Coord defaultCoordNonConst
Default Coord object (non-const version).
Definition Coord.h:58
Coord & operator/=(const double &scalar)
Definition Coord.cpp:271
Coord cross(const Coord &a) const
Cross product between the present vector and vector a.
Definition Coord.cpp:113
void localProjection(const Coord &normal, const Coord &tangent, const Coord &binormal)
Projection in the local coordinate system which is defined by the transmitted normal,...
Definition Coord.cpp:123
Coord & operator*=(const double &scalar)
Definition Coord.cpp:261
void setFromSubtractedVectors(const Coord &a, const Coord &b)
Set a vector from the result of the substraction of the vector a from the vector b.
Definition Coord.cpp:145
Coord operator*(const double &scalar) const
Definition Coord.cpp:281
static double cos(const Coord &v1, const Coord &v2)
Compute some sort of cosinus between two vectors.
Definition Coord.cpp:191
Coord & operator-=(const double &scalar)
Definition Coord.cpp:251
void normalized()
Divide the present vector by its norm.
Definition Coord.cpp:177
double m_z
Value in the y-direction.
Definition Coord.h:162
static double determinant(const Coord &v1, const Coord &v2, const Coord &v3)
Compute the determinant of the matrix formed by the vectors v1, v2 and v3.
Definition Coord.cpp:181
double scalar(const Coord &a) const
Scalar product between the present vector and vector a.
Definition Coord.cpp:99
void buildRelativeVelForRiemannMRF(const Coord &omega, const Coord &normal, const Coord &tangent, const Coord &binormal, const Coord &position)
Build relative velocity from absolute one (relevant with MRF only).
Definition Coord.cpp:215
static double scalarProduct(const Coord &v1, const Coord &v2)
Return the scalar product bewteen two vectors.
Definition Coord.cpp:154
const double & getZ() const
Return the value in the z-direction of the Coord object.
Definition Coord.h:79
static Coord sin(const Coord &v1, const Coord &v2)
Compute some sort of sinus between two vectors.
Definition Coord.cpp:203
Coord operator/(const double &scalar) const
Definition Coord.cpp:290
Coord()
Definition Coord.cpp:40
static const Coord defaultCoord
Default Coord object (const version).
Definition Coord.h:55
Coord & operator=(const double &scalar)
Definition Coord.cpp:231
double m_x
Definition Coord.h:160
void setXYZ(const double &x, const double &y, const double &z)
Set the values of the Coord object.
Definition Coord.cpp:60
double squaredNorm() const
Return the value of the squared norm of the Coord object.
Definition Coord.cpp:85
Class for a matrix 3x3 system object.
Definition Tensor.h:57