This commit is contained in:
romkazvo
2023-08-07 19:29:24 +08:00
commit 34d6c5d489
4832 changed files with 1389451 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#include "StdAfx.h"
#include "bsplinevec3dpacked.h"
// returns the normalized knot and the base - how many cycles the knot rolled back or forth
int PackedSplineClosedGetKnotTime(int &nKnot, int numKnots)
{
int nBase = nKnot / (numKnots-1);
nKnot = nKnot % (numKnots-1);
if (nKnot < 0)
{
--nBase;
nKnot += numKnots-1;
}
return nBase;
}