UNPKG

ts-useful

Version:

Functions for animation, color transitions, ecliptic, bezier, decasteljau, curves, three dimensional curves, smooth scrolling, random range, randomItem, mobius index, vectors, physics vectors, and easing.

8 lines 207 B
/** * * @param length number * @param index number * @returns number */ export const MobiusIndex = (length, index) => ((index % length) + length) % length; //# sourceMappingURL=mobiusIndex.js.map