| 102 | } |
| 103 | |
| 104 | Base::Vector3d DatumElement::getDirection() const |
| 105 | { |
| 106 | Base::Vector3d dir(baseDir); |
| 107 | Base::Placement plc = Placement.getValue(); |
| 108 | Base::Rotation rot = plc.getRotation(); |
| 109 | rot.multVec(dir, dir); |
| 110 | |
| 111 | const auto* lcs = getLCS(); |
| 112 | if (lcs && !lcs->isOrigin()) { |
| 113 | Base::Rotation lcsRot = lcs->Placement.getValue().getRotation(); |
| 114 | lcsRot.multVec(dir, dir); |
| 115 | } |
| 116 | |
| 117 | return dir; |
| 118 | } |
| 119 | |
| 120 | Base::Vector3d DatumElement::getBaseDirection() const |
| 121 | { |
no test coverage detected