Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 0d6c2e7692 Merge branch 'geo-invert' of https://github.com/jasondavies/d3 into release 2011-08-29 11:54:21 -07:00
Jason Davies c06043919f Rename d3.geo.greatcircle to d3.geo.greatCircle. 2011-08-29 18:05:09 +01:00
Jason Davies f20f416a17 Add source and target accessors.
Higher-order programming!  This makes it more akin to d3.svg.chord i.e.
it can take "d" and "i" arguments.  Thanks for the suggestion, Mike!

Also made "n" and "radius" configurable, too.
2011-08-29 11:48:51 +01:00
Jason Davies 399b145a20 Add d3.geo.greatcircle.
Can be used to generate great circle paths.  Similar to R's
geosphere.gcIntermediate (in which I discovered a bug, while writing the
test case for this!)

Includes d3.geo.greatcircle().distance for computing the shortest geo
path distance using the Haversine formula.

For a tutorial on using great circles, see:
http://flowingdata.com/2011/05/11/how-to-map-connections-with-great-circles/
2011-08-28 17:06:48 +01:00
Jason Davies 872c9ff13b Add invert to mercator, albers and azimuthal.
Includes unit tests.

Fixes #246.
2011-08-27 13:25:40 +01:00