MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsFinite

Function IsFinite

trinity/TriMath.cpp:884–889  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////////////////// Misc extensions ////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

882// Misc extensions
883/////////////////////////////////////////////////////////////////////////////////////////
884bool IsFinite( float value )
885{
886 return value == value &&
887 value != std::numeric_limits<float>::infinity() &&
888 value != -std::numeric_limits<float>::infinity();
889}
890
891bool IsFinite( const Vector3& vec )
892{

Callers 2

UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected