Update LengthUtils.java

This commit is contained in:
Prajeen Govardhanam 2017-12-22 11:42:35 +05:30 committed by GitHub
parent 1bb7dbeb13
commit 57820e75b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,9 +64,9 @@ public class LengthUtils {
} }
/** /**
* Gets twice the amount of arc sine of (x)^(1/2) * Computes inverse of haversine
* @param x Angle in radian * @param x Angle in radian
* @return Twice the angle * @return Inverse of haversine
*/ */
private static double arcHav(double x) { private static double arcHav(double x) {
return 2.0D * Math.asin(Math.sqrt(x)); return 2.0D * Math.asin(Math.sqrt(x));
@ -84,9 +84,9 @@ public class LengthUtils {
} }
/** /**
* Computes square sine function for half of the value entered * Computes haversine
* @param x Angle in radians * @param x Angle in radians
* @return One-forth of square of sine function * @return Haversine of x
*/ */
private static double hav(double x) { private static double hav(double x) {
double sinHalf = Math.sin(x * 0.5D); double sinHalf = Math.sin(x * 0.5D);