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

Method rotX

src/Base/Matrix.cpp:219–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void Matrix4D::rotX(double fAngle)
220{
221 Matrix4D clMat;
222 double fsin {};
223 double fcos {};
224
225 fsin = sin(fAngle);
226 fcos = cos(fAngle);
227 clMat.dMtrx4D[1][1] = fcos;
228 clMat.dMtrx4D[2][2] = fcos;
229 clMat.dMtrx4D[1][2] = -fsin;
230 clMat.dMtrx4D[2][1] = fsin;
231
232 (*this) = clMat * (*this);
233}
234
235void Matrix4D::rotY(double fAngle)
236{

Callers 4

rotateXMethod · 0.80
rotateMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

sinFunction · 0.85
cosFunction · 0.85

Tested by

no test coverage detected