MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / mtxRotateZ

Function mtxRotateZ

Source/3rdParty/bx/src/math.cpp:210–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208 }
209
210 void mtxRotateZ(float* _result, float _az)
211 {
212 const float sz = sin(_az);
213 const float cz = cos(_az);
214
215 memSet(_result, 0, sizeof(float)*16);
216 _result[ 0] = cz;
217 _result[ 1] = -sz;
218 _result[ 4] = sz;
219 _result[ 5] = cz;
220 _result[10] = 1.0f;
221 _result[15] = 1.0f;
222 }
223
224 void mtxRotateXY(float* _result, float _ax, float _ay)
225 {

Callers 2

updateViewMethod · 0.85
updateViewMethod · 0.85

Calls 3

memSetFunction · 0.85
sinFunction · 0.50
cosFunction · 0.50

Tested by

no test coverage detected