adjustAngle.js 349 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.adjustAngle = void 0;
  4. function adjustAngle(theta, min, max) {
  5. while (theta < min)
  6. theta += Math.PI * 2;
  7. while (theta > max)
  8. theta -= Math.PI * 2;
  9. return theta;
  10. }
  11. exports.adjustAngle = adjustAngle;
  12. //# sourceMappingURL=adjustAngle.js.map