computeEdgeParity method

int computeEdgeParity()

Implementation

int computeEdgeParity() {
  var s = 0;

  for (var i = Edge.bottomRight.index; i >= Edge.upRight.index + 1; i--) {
    for (var j = i - 1; j >= Edge.upRight.index; j--) {
      if (_ep[j].index > _ep[i].index) {
        s++;
      }
    }
  }

  return s % 2;
}