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

Method getScale

docs/app/js/sanddance-app.js:72149–72158  ·  view source on GitHub ↗
(result = [
        -0,
        -0,
        -0
    ])

Source from the content-addressed store, hash-verified

72147 return _mat4.determinant(this);
72148 }
72149 getScale(result = [
72150 -0,
72151 -0,
72152 -0
72153 ]) {
72154 result[0] = Math.sqrt(this[0] * this[0] + this[1] * this[1] + this[2] * this[2]);
72155 result[1] = Math.sqrt(this[4] * this[4] + this[5] * this[5] + this[6] * this[6]);
72156 result[2] = Math.sqrt(this[8] * this[8] + this[9] * this[9] + this[10] * this[10]);
72157 return result;
72158 }
72159 getTranslation(result = [
72160 -0,
72161 -0,

Callers 5

getRotationMethod · 0.95
getRotationMatrix3Method · 0.95
parseScaleFunction · 0.45
scaleRefFunction · 0.45
scaleTypeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected