Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ Implemented algorithms include:
* Find the position of a planet with respect to the Sun
```rust
// the heliocentric point and radius vector of a planet, like Jupiter
let (jup_long, jup_lat, rad_vec) = planet::heliocent_pos(&planet::Planet::Jupiter, julian_day);
let (jup_long, jup_lat, rad_vec) = planet::heliocent_coords(&planet::Planet::Jupiter, julian_day);

// or neptune
let (nep_long, nep_lat, rad_vec) = planet::heliocent_pos(&planet::Planet::Neptune, julian_day);
let (nep_long, nep_lat, rad_vec) = planet::heliocent_coords(&planet::Planet::Neptune, julian_day);

// positioning for all the eight planets (and (the dwarf planet) Pluto) is supported
let (plut_long, plut_lat, rad_vec) = pluto::heliocent_pos(julian_day);
let (plut_long, plut_lat, rad_vec) = pluto::heliocent_coords(julian_day);
```

* Find the geodesic distance between two locations on Earth
Expand Down