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

Method fromMatrix

src/Base/Placement.cpp:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void Placement::fromMatrix(const Base::Matrix4D& matrix)
72{
73 _rot.setValue(matrix);
74 this->_pos.x = matrix[0][3];
75 this->_pos.y = matrix[1][3];
76 this->_pos.z = matrix[2][3];
77}
78
79DualQuat Placement::toDualQuaternion() const
80{

Callers 11

setPyObjectMethod · 0.80
TransformItemMethod · 0.80
PyInitMethod · 0.80
setMatrixMethod · 0.80
executeMethod · 0.80
onChangedMethod · 0.80
onChangedMethod · 0.80
addTransformNodeMethod · 0.80
setTcpMethod · 0.80
onChangedMethod · 0.80

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected