Files
openlayers/test/spec/ol
Tim Schaub bfc42ffa62 More realistic precision for cosine distance results
Chris Veness' discussion of using the spherical law of cosines (http://www.movable-type.co.uk/scripts/latlong.html) suggests it gives well-conditioned results "around 1 metre" in JavaScript (this assumes a sphere with 6,371km radius).

In Chrome 33, Math.pow(Math.cos(Math.PI / 4), 2) yields 0.4999999999999999.  When we take the arccosine of twice this, we get something significantly different than zero.  Multiplying by 6371 means we can't assert that this is within 1e-9 of zero.
2014-02-24 15:54:17 -07:00
..
2014-02-24 14:53:00 -07:00
2014-02-06 12:59:39 +01:00
2014-02-06 12:48:51 +01:00
2013-12-09 16:37:18 +01:00
2013-05-06 15:35:40 +02:00
2014-02-19 10:20:57 -07:00
2013-03-22 17:25:31 +01:00
2013-07-09 09:30:45 +02:00