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

#47 in Robotics

Download history 597/week @ 2023-12-11 613/week @ 2023-12-18 367/week @ 2023-12-25 318/week @ 2024-01-01 427/week @ 2024-01-08 431/week @ 2024-01-15 709/week @ 2024-01-22 623/week @ 2024-01-29 759/week @ 2024-02-05 618/week @ 2024-02-12 506/week @ 2024-02-19 546/week @ 2024-02-26 954/week @ 2024-03-04 733/week @ 2024-03-11 918/week @ 2024-03-18 1179/week @ 2024-03-25

3,805 downloads per month
Used in 14 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