rotate vector by angle radians around axis through org
| 647 | |
| 648 | //! rotate vector by angle radians around axis through org |
| 649 | Base::Vector3d DrawUtil::vecRotate(Base::Vector3d vec, double angle, Base::Vector3d axis, |
| 650 | Base::Vector3d org) |
| 651 | { |
| 652 | Base::Matrix4D xForm; |
| 653 | xForm.rotLine(org, axis, angle); |
| 654 | return Base::Vector3d(xForm * (vec)); |
| 655 | } |
| 656 | |
| 657 | gp_Vec DrawUtil::closestBasis(gp_Vec inVec) |
| 658 | { |