get100kSetForZone static method Null safety

int get100kSetForZone(
  1. int i

Given a UTM zone number, figure out the MGRS 100K set it is in.

@private @param {number} i An UTM zone number. @return {number} the 100k set the UTM zone is in.


static int get100kSetForZone(int i) {
  var setParm = i % NUM_100K_SETS;
  if (setParm == 0) {
    setParm = NUM_100K_SETS;
  return setParm;