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

Function mSign

Engine/source/math/mMathFn.h:489–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489inline F32 mSign( const F32 n )
490{
491 if ( n > 0.0f )
492 return 1.0f;
493 if ( n < 0.0f )
494 return -1.0f;
495
496 return 0.0f;
497}
498
499/// Returns the input value squared.
500inline F32 mSquared( F32 n )

Callers 6

_sortByScoreMethod · 0.85
_preprocessMethod · 0.85
isSilhouetteEdgeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected