mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Update LengthUtils.java
This commit is contained in:
parent
1bb7dbeb13
commit
57820e75b8
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
* @return Twice the angle
|
||||
* @return Inverse of haversine
|
||||
*/
|
||||
private static double arcHav(double 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
|
||||
* @return One-forth of square of sine function
|
||||
* @return Haversine of x
|
||||
*/
|
||||
private static double hav(double x) {
|
||||
double sinHalf = Math.sin(x * 0.5D);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue