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

Method setPlacement

src/Base/CoordinateSystem.cpp:176–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void CoordinateSystem::setPlacement(const Placement& plm)
177{
178 Vector3d zdir(0, 0, 1);
179 plm.getRotation().multVec(zdir, zdir);
180 axis.setBase(plm.getPosition());
181 axis.setDirection(zdir);
182
183 plm.getRotation().multVec(Vector3d(1, 0, 0), this->xdir);
184 plm.getRotation().multVec(Vector3d(0, 1, 0), this->ydir);
185}

Callers

nothing calls this directly

Calls 6

Vector3dClass · 0.85
multVecMethod · 0.45
getRotationMethod · 0.45
setBaseMethod · 0.45
getPositionMethod · 0.45
setDirectionMethod · 0.45

Tested by

no test coverage detected