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

Method getCameraAlignmentDirection

src/App/Datums.cpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58DatumElement::~DatumElement() = default;
59
60bool DatumElement::getCameraAlignmentDirection(Base::Vector3d& directionZ, Base::Vector3d& directionX, const char* subname) const
61{
62 Q_UNUSED(subname);
63
64 Placement.getValue().getRotation().multVec(baseDir, directionZ);
65
66 if (baseDir == Base::Vector3d::UnitZ) {
67 Placement.getValue().getRotation().multVec(Base::Vector3d::UnitX, directionX);
68 }
69
70 return true;
71}
72
73App::LocalCoordinateSystem* DatumElement::getLCS() const
74{

Callers 1

alignToSelectionMethod · 0.45

Calls 3

multVecMethod · 0.45
getRotationMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected