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 2427/week @ 2024-07-22 2790/week @ 2024-07-29 2976/week @ 2024-08-05 2739/week @ 2024-08-12 2801/week @ 2024-08-19 3271/week @ 2024-08-26 2371/week @ 2024-09-02 2460/week @ 2024-09-09 3361/week @ 2024-09-16 3064/week @ 2024-09-23 3087/week @ 2024-09-30 5224/week @ 2024-10-07 3591/week @ 2024-10-14 3817/week @ 2024-10-21 3821/week @ 2024-10-28 4323/week @ 2024-11-04

15,874 downloads per month
Used in 13 crates (6 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