MCPcopy Index your code
hub / github.com/microsoft/SandDance / getRotationMatrix3

Method getRotationMatrix3

docs/app/js/sanddance-app.js:72215–72246  ·  view source on GitHub ↗
(result, scaleResult)

Source from the content-addressed store, hash-verified

72213 return result;
72214 }
72215 getRotationMatrix3(result, scaleResult) {
72216 result = result || [
72217 -0,
72218 -0,
72219 -0,
72220 -0,
72221 -0,
72222 -0,
72223 -0,
72224 -0,
72225 -0
72226 ];
72227 scaleResult = scaleResult || [
72228 -0,
72229 -0,
72230 -0
72231 ];
72232 const scale = this.getScale(scaleResult);
72233 const inverseScale0 = 1 / scale[0];
72234 const inverseScale1 = 1 / scale[1];
72235 const inverseScale2 = 1 / scale[2];
72236 result[0] = this[0] * inverseScale0;
72237 result[1] = this[1] * inverseScale1;
72238 result[2] = this[2] * inverseScale2;
72239 result[3] = this[4] * inverseScale0;
72240 result[4] = this[5] * inverseScale1;
72241 result[5] = this[6] * inverseScale2;
72242 result[6] = this[8] * inverseScale0;
72243 result[7] = this[9] * inverseScale1;
72244 result[8] = this[10] * inverseScale2;
72245 return result;
72246 }
72247 transpose() {
72248 _mat4.transpose(this, this);
72249 return this.check();

Callers

nothing calls this directly

Calls 1

getScaleMethod · 0.95

Tested by

no test coverage detected