src/models/HexBearing.js
/**
   * returns the "next" bearing in the infinite sequence of clockwise rotation.
   * @param {number} by - how many steps to rotate. default is 1
   */
returns the "next" bearing in the infinite sequence of clockwise rotation.
@param {number} by - how many steps to rotate. default is 1
returns the " next " bearing in the infinite sequence of clockwise rotation . @param { number } by - how many steps to rotate . default is 1
next(bearing, by = 1) {
    HexBearing.assert(bearing);
    const index = wrapIndex(validBearings.indexOf(bearing) + by);
    return validBearings[index];
  }
next ( bearing , by = 1 ) { HexBearing . assert ( bearing ) ; const index = wrapIndex ( validBearings . indexOf ( bearing ) + by ) ; return validBearings [ index ] ; }
returns the "next" bearing in the infinite sequence of clockwise rotation.
returns the " next " bearing in the infinite sequence of clockwise rotation .