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

Method rotY

src/Base/Matrix.cpp:235–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void Matrix4D::rotY(double fAngle)
236{
237 Matrix4D clMat;
238 double fsin {};
239 double fcos {};
240
241 fsin = sin(fAngle);
242 fcos = cos(fAngle);
243 clMat.dMtrx4D[0][0] = fcos;
244 clMat.dMtrx4D[2][2] = fcos;
245 clMat.dMtrx4D[2][0] = -fsin;
246 clMat.dMtrx4D[0][2] = fsin;
247
248 (*this) = clMat * (*this);
249}
250
251void Matrix4D::rotZ(double fAngle)
252{

Callers 4

rotateYMethod · 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