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

Method rotZ

src/Base/Matrix.cpp:251–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void Matrix4D::rotZ(double fAngle)
252{
253 Matrix4D clMat;
254 double fsin {};
255 double fcos {};
256
257 fsin = sin(fAngle);
258 fcos = cos(fAngle);
259 clMat.dMtrx4D[0][0] = fcos;
260 clMat.dMtrx4D[1][1] = fcos;
261 clMat.dMtrx4D[0][1] = -fsin;
262 clMat.dMtrx4D[1][0] = fsin;
263
264 (*this) = clMat * (*this);
265}
266
267void Matrix4D::rotLine(const Vector3d& vec, double fAngle)
268{

Callers 9

rotateZMethod · 0.80
decomposeMethod · 0.80
executeMethod · 0.80
rotateMethod · 0.80
executeMethod · 0.80
OnReadTextMethod · 0.80
AddInsertMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

sinFunction · 0.85
cosFunction · 0.85

Tested by

no test coverage detected