@@ -504,8 +504,8 @@ public static double cos(double angle) {
504
504
}
505
505
506
506
/**
507
- * Quick cosine, with accuracy of about 1.6e-3 (PI/< look-up tabs size> )
508
- * for |angle| < 6588397.0 (Integer.MAX_VALUE * (2*PI/< look-up tabs size> )),
507
+ * Quick cosine, with accuracy of about 1.6e-3 (PI/' look-up tabs size' )
508
+ * for |angle| < 6588397.0 (Integer.MAX_VALUE * (2*PI/' look-up tabs size' )),
509
509
* and no accuracy at all for larger values.
510
510
*
511
511
* @param angle Angle in radians.
@@ -550,8 +550,8 @@ public static double sin(double angle) {
550
550
}
551
551
552
552
/**
553
- * Quick sine, with accuracy of about 1.6e-3 (PI/< look-up tabs size> )
554
- * for |angle| < 6588397.0 (Integer.MAX_VALUE * (2*PI/< look-up tabs size> )),
553
+ * Quick sine, with accuracy of about 1.6e-3 (PI/' look-up tabs size' )
554
+ * for |angle| < 6588397.0 (Integer.MAX_VALUE * (2*PI/' look-up tabs size' )),
555
555
* and no accuracy at all for larger values.
556
556
*
557
557
* @param angle Angle in radians.
@@ -1057,7 +1057,7 @@ public static double exp(double value) {
1057
1057
}
1058
1058
1059
1059
/**
1060
- * Quick exp, with a max relative error of about 3e-2 for |value| < 700.0 or so,
1060
+ * Quick exp, with a max relative error of about 3e-2 for |value| < 700.0 or so,
1061
1061
* and no accuracy at all outside this range.
1062
1062
* Derived from a note by Nicol N. Schraudolph, IDSIA, 1998.
1063
1063
*
@@ -1311,7 +1311,7 @@ public static double log1p(double value) {
1311
1311
* @param value An integer value in [1,Integer.MAX_VALUE].
1312
1312
* @return The integer part of the logarithm, in base 2, of the specified value,
1313
1313
* i.e. a result in [0,30]
1314
- * @throws IllegalArgumentException if the specified value is < = 0.
1314
+ * @throws IllegalArgumentException if the specified value is < = 0.
1315
1315
*/
1316
1316
public static int log2 (int value ) {
1317
1317
return NumbersUtils .log2 (value );
@@ -1321,7 +1321,7 @@ public static int log2(int value) {
1321
1321
* @param value An integer value in [1,Long.MAX_VALUE].
1322
1322
* @return The integer part of the logarithm, in base 2, of the specified value,
1323
1323
* i.e. a result in [0,62]
1324
- * @throws IllegalArgumentException if the specified value is < = 0.
1324
+ * @throws IllegalArgumentException if the specified value is < = 0.
1325
1325
*/
1326
1326
public static int log2 (long value ) {
1327
1327
return NumbersUtils .log2 (value );
@@ -1397,7 +1397,7 @@ public static double pow(double value, double power) {
1397
1397
1398
1398
/**
1399
1399
* Quick pow, with a max relative error of about 3.5e-2
1400
- * for |a^b| < 1e10, of about 0.17 for |a^b| < 1e50,
1400
+ * for |a^b| < 1e10, of about 0.17 for |a^b| < 1e50,
1401
1401
* and worse accuracy above.
1402
1402
*
1403
1403
* @param value A double value, in ]0,+infinity[ (strictly positive and finite).
@@ -1413,7 +1413,7 @@ public static double powQuick(double value, double power) {
1413
1413
1414
1414
/**
1415
1415
* This treatment is somehow accurate for low values of |power|,
1416
- * and for |power*getExponent(value)| < 1023 or so (to stay away
1416
+ * and for |power*getExponent(value)| < 1023 or so (to stay away
1417
1417
* from double extreme magnitudes (large and small)).
1418
1418
*
1419
1419
* @param value A double value.
@@ -2302,7 +2302,7 @@ public static long multiplyBounded(long a, long b) {
2302
2302
* @param minValue An int value.
2303
2303
* @param maxValue An int value.
2304
2304
* @param value An int value.
2305
- * @return minValue if value < minValue, maxValue if value > maxValue, value otherwise.
2305
+ * @return minValue if value < minValue, maxValue if value > maxValue, value otherwise.
2306
2306
*/
2307
2307
public static int toRange (int minValue , int maxValue , int value ) {
2308
2308
return NumbersUtils .toRange (minValue , maxValue , value );
@@ -2312,7 +2312,7 @@ public static int toRange(int minValue, int maxValue, int value) {
2312
2312
* @param minValue A long value.
2313
2313
* @param maxValue A long value.
2314
2314
* @param value A long value.
2315
- * @return minValue if value < minValue, maxValue if value > maxValue, value otherwise.
2315
+ * @return minValue if value < minValue, maxValue if value > maxValue, value otherwise.
2316
2316
*/
2317
2317
public static long toRange (long minValue , long maxValue , long value ) {
2318
2318
return NumbersUtils .toRange (minValue , maxValue , value );
@@ -2322,7 +2322,7 @@ public static long toRange(long minValue, long maxValue, long value) {
2322
2322
* @param minValue A float value.
2323
2323
* @param maxValue A float value.
2324
2324
* @param value A float value.
2325
- * @return minValue if value < minValue, maxValue if value > maxValue, value otherwise.
2325
+ * @return minValue if value < minValue, maxValue if value > maxValue, value otherwise.
2326
2326
*/
2327
2327
public static float toRange (float minValue , float maxValue , float value ) {
2328
2328
return NumbersUtils .toRange (minValue , maxValue , value );
@@ -2332,19 +2332,19 @@ public static float toRange(float minValue, float maxValue, float value) {
2332
2332
* @param minValue A double value.
2333
2333
* @param maxValue A double value.
2334
2334
* @param value A double value.
2335
- * @return minValue if value < minValue, maxValue if value > maxValue, value otherwise.
2335
+ * @return minValue if value < minValue, maxValue if value > maxValue, value otherwise.
2336
2336
*/
2337
2337
public static double toRange (double minValue , double maxValue , double value ) {
2338
2338
return NumbersUtils .toRange (minValue , maxValue , value );
2339
2339
}
2340
2340
2341
2341
/**
2342
- * NB: Since 2*Math.PI < 2*PI, a span of 2*Math.PI does not mean full angular range.
2342
+ * NB: Since 2*Math.PI < 2*PI, a span of 2*Math.PI does not mean full angular range.
2343
2343
* ex.: isInClockwiseDomain(0.0, 2*Math.PI, -1e-20) returns false.
2344
- * ---> For full angular range, use a span > 2*Math.PI, like 2*PI_SUP constant of this class.
2344
+ * For full angular range, use a span > 2*Math.PI, like 2*PI_SUP constant of this class.
2345
2345
*
2346
2346
* @param startAngRad An angle, in radians.
2347
- * @param angSpanRad An angular span, > = 0.0, in radians.
2347
+ * @param angSpanRad An angular span, > = 0.0, in radians.
2348
2348
* @param angRad An angle, in radians.
2349
2349
* @return True if angRad is in the clockwise angular domain going from startAngRad, over angSpanRad,
2350
2350
* extremities included, false otherwise.
@@ -2366,7 +2366,7 @@ public static boolean isInClockwiseDomain(double startAngRad, double angSpanRad,
2366
2366
}
2367
2367
} else if (angSpanRad != angSpanRad ) { // angSpanRad is NaN
2368
2368
return false ;
2369
- } else { // angSpanRad > 2*Math.PI
2369
+ } else { // angSpanRad > 2*Math.PI
2370
2370
// we know angRad is not NaN, due to a previous test
2371
2371
return true ;
2372
2372
}
0 commit comments