82 BASE_EXPORT void setDir(
unsigned int dof,
const DVect2 &v);
83 BASE_EXPORT void setDirAuto(
unsigned int dof,
unsigned int keepDOF=0xFFFFFFFF);
130 BASE_EXPORT Axes3D(
const DVect3 &vx,
const DVect3 &vy,
const DVect3 &vz,
const DVect3 &
c=DVect3(0));
179 BASE_EXPORT DVect3 &rdof(
unsigned dof) {
if (!dof)
return d1_;
else if (dof==1)
return d2_;
else if (dof==2)
return d3_;
else return c_; }
187 BASE_EXPORT void setDir(
unsigned int dof,
const DVect3 &v);
188 BASE_EXPORT void setDirAuto(
unsigned int dof,
unsigned int keepDOF=0xFFFFFFFF);
BASE_EXPORT DVect3 toLocal(const DVect3 &v) const
Converts a vector from "global" (cartesian) system to this system.
Definition: axes.cpp:139
static BASE_EXPORT void setTolerance(const double &d)
Definition: axes.cpp:91
BASE_EXPORT const DVect2 & e2() const
The y unit vector.
Definition: axes.h:60
BASE_EXPORT bool operator!=(const Axes3D &a) const
Comparison operator.
Definition: axes.h:146
BASE_EXPORT DVect2 & rc()
Reference access to the axes origin.
Definition: axes.h:64
static BASE_EXPORT Axes2D make(const DVect2 &y)
Creates an Axes using vector y in the +y direction (need not be unit).
Definition: axes.cpp:73
static BASE_EXPORT Axes3D makeX(const DVect3 &x, const Double &roll=0.0)
Definition: axes.cpp:244
BASE_EXPORT DVect3 & re3()
Definition: axes.h:178
Class for storing an "orientation", or a direction in 2D or 3D space.
static BASE_EXPORT double getTolerance()
Returns the tolerance used for comparison and detecting "near enough to zero".
Definition: axes.cpp:95
BASE_EXPORT DVect3 getDir(unsigned int dof) const
Return e1, e2, or e3 based on degree-of-freedom (0-2)
Definition: axes.cpp:164
BASE_EXPORT bool operator==(const Axes2D &a) const
Comparison operator.
Definition: axes.cpp:36
BASE_EXPORT DVect2 toLocal(const DVect2 &v) const
Convert Dvect2 v from "global" system to this system.
Definition: axes.cpp:24
BASE_EXPORT Orientation2 getOrientation(unsigned int dof=0) const
Returns the equivalent orientation of degree-of-freedom dof (0-1)
Definition: axes.cpp:68
BASE_EXPORT const DAVect2 & toGlobal(const DAVect2 &v) const
Convert DAVect2 v from this system to a "global" system (identity transformation).
Definition: axes.h:79
2D and 3D vector utility classes.
BASE_EXPORT const DVect2 & c() const
The origin of the axes system.
Definition: axes.h:56
BASE_EXPORT const DVect3 & e2() const
The y unit direction.
Definition: axes.h:164
BASE_EXPORT void setOrientation(const Double &dip, const Double &ddir, const Double &roll=0.0)
Definition: axes.cpp:103
BASE_EXPORT Axes3D(const Axes3D &a)
Copy constructor.
Definition: axes.h:125
BASE_EXPORT const Axes2D & operator=(const Axes2D &a)
Equality operator.
Definition: axes.h:42
BASE_EXPORT Axes3D(const Double &dip, const Double &ddir, const Double &roll=0.0, const DVect3 &c=DVect3(0))
Definition: axes.h:136
BASE_EXPORT Axes3D(const Axes2D &a)
Explicit construction from Axes2D. e3() = (0,0,1).
Definition: axes.h:127
Class for specifying a particular 3D cartesian axes system, and converting to and from it.
Definition: axes.h:120
BASE_EXPORT const DVect3 & e1() const
The x unit direction.
Definition: axes.h:162
Class for specifying a particular 2D cartesian axes system, and converting to and from it.
Definition: axes.h:20
static BASE_EXPORT double getTolerance()
Returns the Tolerance used for comparison and detecting "near enough to zero".
Definition: axes.cpp:286
BASE_EXPORT const DVect3 & e3() const
The z unit direction.
Definition: axes.h:166
BASE_EXPORT DVect2 & re1()
Definition: axes.h:67
BASE_EXPORT bool operator==(const Axes3D &a) const
Comparison operator.
Definition: axes.cpp:152
Class for storing an "orientation", or a direction in 2D or 3D space.
Definition: orientation.h:94
#define BASE_EXPORT
Definition: basedef.h:21
BASE_EXPORT DVect2 toGlobal(const DVect2 &v) const
Convert DVect2 v from this system to a "global" system.
Definition: axes.cpp:30
BASE_EXPORT Axes2D(const Orientation2 &o, const DVect2 &c=DVect2(0))
Definition: axes.h:39
BASE_EXPORT const DAVect2 & toLocal(const DAVect2 &v) const
Convert DAVect2 v from "global" system to this system (identity transformation).
Definition: axes.h:75
BASE_EXPORT DVect3 & re2()
Definition: axes.h:175
BASE_EXPORT DVect3 & rc()
Reference access to the origin of the axes system.
Definition: axes.h:169
BASE_EXPORT void setOrigin(const DVect3 &c)
Change the origin of the axes sytem.
Definition: axes.h:149
BASE_EXPORT Axes3D()
Default constructor, no initialization of data.
Definition: axes.h:123
BASE_EXPORT const DVect3 & c() const
The origin of the axes system.
Definition: axes.h:160
BASE_EXPORT bool operator!=(const Axes2D &a) const
Comparison operator.
Definition: axes.h:46
double Double
64 bit floating point
Definition: basedef.h:40
BASE_EXPORT Axes3D(const Orientation3 &o, const Double &roll=0.0, const DVect3 &c=DVect3(0))
Definition: axes.h:139
BASE_EXPORT Orientation3 getOrientation(unsigned int dof=0) const
Returns equivalent orientation of e1, e2, or e2 based on degree-of-freedom (0-2)
Definition: axes.cpp:222
Class for storing an "orientation", or a direction in 2D or 3D space.
Definition: orientation.h:45
static BASE_EXPORT Axes2D makeX(const DVect2 &x)
Creates an Axes using vector x in the +x direction (need not be unit).
Definition: axes.cpp:79
BASE_EXPORT Axes2D()
Default construction, no initialization of data.
Definition: axes.h:23
BASE_EXPORT Axes2D(const Double &dip, const DVect2 &c=DVect2(0))
Definition: axes.h:35
BASE_EXPORT DVect3 & re1()
Definition: axes.h:172
BASE_EXPORT const Axes3D & operator=(const Axes3D &a)
Equality operator.
Definition: axes.h:142
static BASE_EXPORT Axes3D make(const DVect3 &z, const Double &roll=0.0)
Definition: axes.cpp:238
BASE_EXPORT Double getRoll() const
Definition: axes.cpp:227
BASE_EXPORT void setOrigin(const DVect2 &c)
Specifies a new origin for the axes system.
Definition: axes.h:49
BASE_EXPORT Axes2D(const Axes2D &a)
Copy constructor.
Definition: axes.h:25
BASE_EXPORT DVect2 getDir(unsigned int dof) const
Return e1 or e2 given degree-of-freedom dof (0-1)
Definition: axes.cpp:43
BASE_EXPORT DVect2 & re2()
Definition: axes.h:70
BASE_EXPORT void setOrientation(const Double &dip)
Specifies a new orientation for the axes, by dip (in radians).
Definition: axes.cpp:12
BASE_EXPORT DVect3 toGlobal(const DVect3 &v) const
Converts a vector from this system to a "global" system.
Definition: axes.cpp:145
static BASE_EXPORT void setTolerance(const double &d)
Definition: axes.cpp:282
BASE_EXPORT const DVect2 & e1() const
The x unit vector.
Definition: axes.h:58
Vector3< T > toVect3(const Vector2< T > &v, const T &t=0)
Conversion between vectors of different dimension.
Definition: vect.h:339