public static double bufferDistanceError(int quadSegs){
  double alpha=Math.PI / 2.0 / quadSegs;
  return 1 - Math.cos(alpha / 2.0);
}

public static double bufferDistanceError ( int quadSegs ) { double alpha = Math . PI / 2.0 / quadSegs ; return 1 - Math . cos ( alpha / 2.0 ) ; }
computes the maximum distance error due to a given level of approximation to a true arc .
