MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getScale

Method getScale

Engine/source/math/mMatrix.h:374–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374inline Point3F MatrixF::getScale() const
375{
376 Point3F scale;
377 scale.x = mSqrt(m[0]*m[0] + m[4] * m[4] + m[8] * m[8]);
378 scale.y = mSqrt(m[1]*m[1] + m[5] * m[5] + m[9] * m[9]);
379 scale.z = mSqrt(m[2]*m[2] + m[6] * m[6] + m[10] * m[10]);
380 return scale;
381}
382
383inline void MatrixF::normalize()
384{

Callers 15

setPathScaleMethod · 0.45
updateWorldDataMethod · 0.45
findGroundContactMethod · 0.45
findCollisionMethod · 0.45
sampleMethod · 0.45
get_launch_dataMethod · 0.45
updateParamsMethod · 0.45
setPathScaleMethod · 0.45
updateWorldDataMethod · 0.45
findGroundContactMethod · 0.45

Calls 1

mSqrtFunction · 0.85

Tested by

no test coverage detected