public static double cosQuick(double angle){
  if (USE_JDK_MATH) {
    return STRICT_MATH ? StrictMath.cos(angle) : Math.cos(angle);
  }
  return cosTab[((int)(Math.abs(angle) * SIN_COS_INDEXER + 0.5)) & (SIN_COS_TABS_SIZE - 2)];
}

public static double cosQuick ( double angle ) { if ( USE_JDK_MATH ) { return STRICT_MATH ? StrictMath . cos ( angle ) : Math . cos ( angle ) ; } return cosTab [ ( ( int ) ( Math . abs ( angle ) * SIN_COS_INDEXER + 0.5 ) ) & ( SIN_COS_TABS_SIZE - 2 ) ] ; }
quick cosine , with accuracy of about 1 . 6e - 3 ( pi / ' look - up tabs size ' ) for | angle | & lt ; 6588397 . 0 ( integer . max_value * ( 2 * pi / ' look - up tabs size ' ) ) , and no accuracy at all for larger values .
