MCPcopy Create free account
hub / github.com/andrewwillmott/splines-lib / Clamp

Function Clamp

Splines.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace
21{
22 inline float Clamp(float x, float minX, float maxX)
23 {
24 if (x < minX)
25 return minX;
26 if (x > maxX)
27 return maxX;
28 return x;
29 }
30
31 inline float InvSqrtFast(float x)
32 {

Callers 3

CubicMonoDeltaFunction · 0.85
FindMinMaxDistance2sFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected