MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / ClampBspline

Function ClampBspline

src/SB/Core/x/xSpline.cpp:360–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360F32 ClampBspline(xSpline3* spl, F32 u)
361{
362 if (u < 0.0f)
363 {
364 u = 0.0f;
365 }
366 if (u > spl->knot[spl->N])
367 {
368 return spl->knot[spl->N];
369 }
370 return u;
371}
372
373S32 SegBspline(xSpline3* spl, F32 u)
374{

Callers 1

EvalBspline3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected