MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / vecRotate

Method vecRotate

src/Mod/TechDraw/App/DrawUtil.cpp:649–655  ·  view source on GitHub ↗

rotate vector by angle radians around axis through org

Source from the content-addressed store, hash-verified

647
648//! rotate vector by angle radians around axis through org
649Base::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
657gp_Vec DrawUtil::closestBasis(gp_Vec inVec)
658{

Callers

nothing calls this directly

Calls 2

Vector3dClass · 0.85
rotLineMethod · 0.80

Tested by

no test coverage detected