Class for specifying a particular 2D cartesian axes system, and converting to and from it.
More...
|
BASE_EXPORT | Axes2D () |
| Default construction, no initialization of data.
|
|
BASE_EXPORT | Axes2D (const Axes2D &a) |
| Copy constructor.
|
|
BASE_EXPORT | Axes2D (const DVect2 &vx, const DVect2 &vy, bool normalize, const DVect2 &c=DVect2(0)) |
|
BASE_EXPORT | Axes2D (double dip, const DVect2 &c=DVect2(0)) |
|
BASE_EXPORT | Axes2D (const Orientation2 &o, const DVect2 &c=DVect2(0)) |
|
BASE_EXPORT constexpr const Axes2D & | operator= (const Axes2D &a) |
| Equality operator.
|
|
BASE_EXPORT bool | operator== (const Axes2D &a) const |
| Comparison operator.
|
|
BASE_EXPORT bool | operator!= (const Axes2D &a) const |
| Comparison operator.
|
|
BASE_EXPORT void | setOrigin (const DVect2 &c) |
| Specifies a new origin for the axes system.
|
|
BASE_EXPORT void | setOrientation (double dip) |
| Specifies a new orientation for the axes, by dip (in radians).
|
|
BASE_EXPORT void | setOrientation (const Orientation2 &o) |
| Specifies a new orientation for the axes, by orientation.
|
|
BASE_EXPORT const DVect2 & | c () const |
| The origin of the axes system.
|
|
BASE_EXPORT const DVect2 & | e1 () const |
| The x unit vector.
|
|
BASE_EXPORT const DVect2 & | e2 () const |
| The y unit vector.
|
|
BASE_EXPORT DVect2 & | rc () |
| Reference access to the axes origin.
|
|
BASE_EXPORT DVect2 & | re1 () |
|
BASE_EXPORT DVect2 & | re2 () |
|
BASE_EXPORT DVect2 | toLocal (const DVect2 &v) const |
| Convert Dvect2 v from "global" system to this system.
|
|
BASE_EXPORT const DAVect2 & | toLocal (const DAVect2 &v) const |
| Convert DAVect2 v from "global" system to this system (identity transformation).
|
|
BASE_EXPORT DVect2 | toGlobal (const DVect2 &v) const |
| Convert DVect2 v from this system to a "global" system.
|
|
BASE_EXPORT const DAVect2 & | toGlobal (const DAVect2 &v) const |
| Convert DAVect2 v from this system to a "global" system (identity transformation).
|
|
BASE_EXPORT DVect2 | getDir (uint32 dof) const |
| Return e1 or e2 given degree-of-freedom dof (0-1)
|
|
BASE_EXPORT void | setDir (uint32 dof, const DVect2 &v) |
|
BASE_EXPORT void | setDirAuto (uint32 dof, uint32 keepDOF=0xFFFFFFFF) |
|
BASE_EXPORT Orientation2 | getOrientation (uint32 dof=0) const |
| Returns the equivalent orientation of degree-of-freedom dof (0-1)
|
|
Class for specifying a particular 2D cartesian axes system, and converting to and from it.
This class is allows one to specify an alternate cartesian coordinate system (including origin translation) and convert from "local" (to this Axes object) to "global" the default cartesian space. This class is a 2D version of Axes, and a 3D one exists as well. To the extent possible, the API has been made the same for both.