euclideanModulo<T extends num> static method

num euclideanModulo<T extends num>(
  1. T n,
  2. T m
)

Implementation

static num euclideanModulo<T extends num>(T n, T m) {
  return ((n % m) + m) % m;
}