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

Function ClampInt

trinity/TriMath.cpp:904–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902}
903
904int32_t ClampInt(
905 int32_t f,
906 int32_t min,
907 int32_t max )
908{
909 return ( f < min ) ? min : ( ( f > max ) ? max : f );
910}
911
912uint32_t ClampUInt(
913 uint32_t f,

Callers 2

CreateFromHeightDataMethod · 0.85
SetupMeshesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected