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.
12 lines • 346 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MobiusIndex = void 0;
/**
*
* @param length number
* @param index number
* @returns number
*/
const MobiusIndex = (length, index) => ((index % length) + length) % length;
exports.MobiusIndex = MobiusIndex;
//# sourceMappingURL=mobiusIndex.js.map