8 #ifndef FFA_3D_LOCATION_H
9 #define FFA_3D_LOCATION_H
128 #ifdef FFA_INDEXCHECK
130 std::cerr <<
"FFa3DLocation::operator[]: index i="<< i
131 <<
" is out of range [0,2]"<< std::endl;
138 #ifdef FFA_INDEXCHECK
140 std::cerr <<
"FFa3DLocation::operator[]: index i="<< i
141 <<
" is out of range [0,2]"<< std::endl;
Enum variables with text representations.
#define FFaEnumEntryEnd
Defines the end of an enum mapping definition.
Definition: FFaEnum.H:238
#define FFaEnumEntry(EnumValue, EnumText)
Adds one entry to the current enum mapping definition.
Definition: FFaEnum.H:234
Point vectors in 3D space.
Definition: FFa3DLocation.H:19
FFa3DLocation & setPos(PosType p, const FaVec3 &cartPos)
Definition: FFa3DLocation.C:220
PosType getPosType() const
Definition: FFa3DLocation.H:90
FFa3DLocation & changePosType(PosType newType)
Definition: FFa3DLocation.C:99
bool saveMyNumericalData
If false, only the type enums are saved.
Definition: FFa3DLocation.H:58
FFa3DLocation & set(PosType p, const FaMat34 &posRelMx, RotType r, const FaMat34 &rotRelMx, const FaMat34 &glbPos)
Definition: FFa3DLocation.C:178
RotType
Definition: FFa3DLocation.H:32
@ EUL_Z_Y_X
Euler ZYX-angles. Supposed to be entered [ X, Y, Z].
Definition: FFa3DLocation.H:33
@ PNT_PX_PXY
Point on X-axis and point in XY-plane.
Definition: FFa3DLocation.H:34
@ PNT_PZ_PXZ
Point on Z-axis and point in XZ-plane.
Definition: FFa3DLocation.H:35
@ DIR_EX_EXY
Direction vector along X-axis, direction vector in XY-plane.
Definition: FFa3DLocation.H:36
FaVec3 translation() const
Definition: FFa3DLocation.C:308
bool isValid() const
Definition: FFa3DLocation.C:429
const FaVec3 & operator[](int i) const
Definition: FFa3DLocation.H:126
FFa3DLocation & changeRotRefCS(const FaMat34 &newRef, const FaMat34 &oldRef)
Definition: FFa3DLocation.C:151
FFa3DLocation & setIdentity()
Definition: FFa3DLocation.H:114
FFa3DLocation & operator=(const FFa3DLocation &m)
Definition: FFa3DLocation.C:67
int getNumFields() const
Definition: FFa3DLocation.C:386
FFa3DLocation(bool saveNumericalData=true)
Definition: FFa3DLocation.C:20
FaMat33 direction() const
Definition: FFa3DLocation.C:349
friend std::ostream & operator<<(std::ostream &s, const FFa3DLocation &m)
Definition: FFa3DLocation.C:468
bool operator==(const FFa3DLocation &m) const
Definition: FFa3DLocation.H:81
void setSaveNumericalData(bool doSave)
Definition: FFa3DLocation.H:74
FaVec3 myL[3]
Definition: FFa3DLocation.H:62
bool isCoincident(const FFa3DLocation &m, double tolerance=1.0e-7) const
Definition: FFa3DLocation.C:89
PosType
Definition: FFa3DLocation.H:22
@ CART_X_Y_Z
Cartesian coordinates.
Definition: FFa3DLocation.H:23
@ CYL_R_YR_X
Cylindric coordinates, angle from Y-axis about X-axis.
Definition: FFa3DLocation.H:24
@ SPH_R_ZR_XY
Spherical coordinates, asimuth angle from Z-axis.
Definition: FFa3DLocation.H:29
@ CYL_R_ZR_Y
Cylindric coordinates, angle from Z-axis about Y-axis.
Definition: FFa3DLocation.H:25
@ SPH_R_XR_YZ
Spherical coordinates, asimuth angle from X-axis.
Definition: FFa3DLocation.H:27
@ CYL_R_XR_Z
Cylindric coordinates, angle from X-axis about Z-axis.
Definition: FFa3DLocation.H:26
@ SPH_R_YR_ZX
Spherical coordinates, asimuth angle from Y-axis.
Definition: FFa3DLocation.H:28
friend std::istream & operator>>(std::istream &s, FFa3DLocation &m)
Definition: FFa3DLocation.C:491
FFaEnumMapping(PosType)
Definition: FFa3DLocation.H:41
FFa3DLocation(const FFa3DLocation &m)
Definition: FFa3DLocation.H:71
bool operator!=(const FFa3DLocation &m) const
Definition: FFa3DLocation.H:82
PosTypeEnum myPosTyp
Definition: FFa3DLocation.H:63
FFa3DLocation & changeRotType(RotType newType)
Definition: FFa3DLocation.C:112
FaMat34 getMatrix() const
Definition: FFa3DLocation.C:404
RotTypeEnum myRotTyp
Definition: FFa3DLocation.H:64
FFa3DLocation & setRot(RotType r, const FaMat33 &rotMat)
Definition: FFa3DLocation.C:264
RotType getRotType() const
Definition: FFa3DLocation.H:91
FFaEnumMapping(RotType)
Definition: FFa3DLocation.H:52
FFa3DLocation & changePosRefCS(const FaMat34 &newRef, const FaMat34 &oldRef)
Definition: FFa3DLocation.C:126
Definition: FFaMat33.H:15
Definition: FFaMat34.H:16
Class for point vectors in 3D space.
Definition: FFaVec3.H:40
real(dp), dimension(:,:), allocatable m
Definition: inverseModule.f90:38
real(dp), dimension(:), allocatable v0
Definition: inverseModule.f90:26
real(dp), dimension(:), allocatable v1
Definition: inverseModule.f90:27
real(dp), dimension(:), allocatable v2
Definition: inverseModule.f90:28