| 93 | } |
| 94 | |
| 95 | void CoordinateSystem::setYDirection(const Vector3d& dir) |
| 96 | { |
| 97 | Vector3d xd = dir % axis.getDirection(); |
| 98 | if (xd.Sqr() < Base::Vector3d::epsilon()) { |
| 99 | throw Base::ValueError("Direction is parallel to Z-direction"); |
| 100 | } |
| 101 | xdir = xd; |
| 102 | xdir.Normalize(); |
| 103 | ydir = axis.getDirection() % xdir; |
| 104 | ydir.Normalize(); |
| 105 | } |
| 106 | |
| 107 | void CoordinateSystem::setZDirection(const Vector3d& dir) |
| 108 | { |
no test coverage detected