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

#60 in Robotics

Download history 3111/week @ 2024-11-17 2371/week @ 2024-11-24 2283/week @ 2024-12-01 3785/week @ 2024-12-08 3652/week @ 2024-12-15 1576/week @ 2024-12-22 1999/week @ 2024-12-29 3709/week @ 2025-01-05 3301/week @ 2025-01-12 3226/week @ 2025-01-19 3179/week @ 2025-01-26 4078/week @ 2025-02-02 3738/week @ 2025-02-09 5504/week @ 2025-02-16 5060/week @ 2025-02-23 4736/week @ 2025-03-02

19,315 downloads per month
Used in 15 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