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

Function xFuncPiece_EndPoints

src/SB/Core/x/xMath.cpp:561–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561void xFuncPiece_EndPoints(xFuncPiece* func, F32 pi, F32 pf, F32 fi, F32 ff)
562{
563 F32 xfinv; // from DWARF data
564 F32 df; // not from DWARF data
565
566 func->end = pf - pi;
567 xfinv = (1.0f / func->end);
568 df = ff - fi;
569 func->order = 1;
570 func->coef[0] = fi;
571 func->coef[1] = df * xfinv;
572 xFuncPiece_ShiftPiece(func, func, -pi);
573}
574
575void xFuncPiece_ShiftPiece(xFuncPiece* shift, xFuncPiece* func, F32 newZero)
576

Callers 2

zLightningInitFunction · 0.50
zLightningUpdateFunction · 0.50

Calls 1

xFuncPiece_ShiftPieceFunction · 0.70

Tested by

no test coverage detected