Class SloppyMath
Math functions that trade off accuracy for speed.
Inheritance
System.Object
SloppyMath
Assembly: DistributedLucene.Net.dll
Syntax
public class SloppyMath : object
Methods
Name | Description |
---|---|
Asin(Double) | Returns the arc sine of a value. The returned angle is in the range -pi/2 through pi/2. Error is around 1E-7. Special cases:
|
Cos(Double) | Returns the trigonometric cosine of an angle. Error is around 1E-15. Special cases:
|
EarthDiameter(Double) | Return an approximate value of the diameter of the earth at the given latitude, in kilometers. |
Haversin(Double, Double, Double, Double) | Returns the distance in kilometers between two points specified in decimal degrees (latitude/longitude). |