function computeParameters(vertexIndex, angleSum) {
    if (angleSum === 0) {
      return vertexIndex * 10000;
    }
    return Math.sign(angleSum) * (vertexIndex * 10000 + Math.abs(angleSum));
  }
@param {number} vertexIndex From 0 to 3, indicating position in the quad
@param {number} angleSum Sum of the join angles encountered so far (used to compute distance offset
@return {number} A float value containing both information