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

Method getLeastComponentIndex

Engine/source/math/mPoint3.h:525–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525inline U32 Point3F::getLeastComponentIndex() const
526{
527 U32 idx;
528
529 if ( mFabs( x ) < mFabs( y ) )
530 {
531 if ( mFabs( x ) < mFabs( z ) )
532 idx = 0;
533 else
534 idx = 2;
535 }
536 else
537 {
538 if ( mFabs( y ) < mFabs( z ) )
539 idx = 1;
540 else
541 idx = 2;
542 }
543
544 return idx;
545}
546
547inline U32 Point3F::getGreatestComponentIndex() const
548{

Callers 2

_updateDecalMethod · 0.80
mPerpFunction · 0.80

Calls 1

mFabsFunction · 0.85

Tested by

no test coverage detected