6 releases

0.1.5 Jul 13, 2022
0.1.4 Aug 16, 2020
0.1.3 Jun 13, 2020
0.1.2 May 18, 2020

#48 in Robotics

Download history 409/week @ 2024-01-07 447/week @ 2024-01-14 665/week @ 2024-01-21 677/week @ 2024-01-28 754/week @ 2024-02-04 606/week @ 2024-02-11 500/week @ 2024-02-18 556/week @ 2024-02-25 933/week @ 2024-03-03 751/week @ 2024-03-10 920/week @ 2024-03-17 1110/week @ 2024-03-24 1376/week @ 2024-03-31 1398/week @ 2024-04-07 1990/week @ 2024-04-14 2132/week @ 2024-04-21

7,013 downloads per month
Used in 13 crates (7 directly)

Apache-2.0

45KB
638 lines

Rust Map3d

crates.io Rust License codecov

This is a Rust library for geographic coordinate frame conversion. The implementation is similar to Pymap3d. All the functions are implemented in f64 precision.

Live demo: map 3d live demo

No external dependencies

The default units are:

  • Radians [rad] for angular variables
  • Meters [m] for linear variables
  • Greenwich Sidereal Time [GST] for date and time

We support several reference ellipsoids, WGS84 is defined as the default one, obtained with Ellipsoid::default().

List of coordinates systems implemented in the functions:

Additional functions:

  • Radians to Degrees and Degrees to Radians
  • UTC time conversion to GST
  • 3x3 Matrix - 3x1 column multiplication
  • 3x3 Matrix transpose
  • f64 round towards zero
  • projected distance (Haversine formula) between two coordinates (lat, lon, in decimal degrees)

To-Do List:

  • implement functions for right ascension and declination conversions

No runtime deps