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

Function TriClamp

trinity/TriMath.cpp:896–902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894}
895
896float TriClamp(
897 float f,
898 float min,
899 float max )
900{
901 return ( f < min ) ? min : ( ( f > max ) ? max : f );
902}
903
904int32_t ClampInt(
905 int32_t f,

Callers 15

TriLinearizeFunction · 0.85
CreateFromHeightDataMethod · 0.85
GetValueAtMethod · 0.85
GetKickInValueMethod · 0.85
UpdateMethod · 0.85
UpdateMethod · 0.85
UpdateStateMethod · 0.85
CheckImpactMethod · 0.85
UpdateWarheadMethod · 0.85
UpdateSyncronousMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected