| 58 | DatumElement::~DatumElement() = default; |
| 59 | |
| 60 | bool DatumElement::getCameraAlignmentDirection(Base::Vector3d& directionZ, Base::Vector3d& directionX, const char* subname) const |
| 61 | { |
| 62 | Q_UNUSED(subname); |
| 63 | |
| 64 | Placement.getValue().getRotation().multVec(baseDir, directionZ); |
| 65 | |
| 66 | if (baseDir == Base::Vector3d::UnitZ) { |
| 67 | Placement.getValue().getRotation().multVec(Base::Vector3d::UnitX, directionX); |
| 68 | } |
| 69 | |
| 70 | return true; |
| 71 | } |
| 72 | |
| 73 | App::LocalCoordinateSystem* DatumElement::getLCS() const |
| 74 | { |
no test coverage detected