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

#13 in Robotics

Download history 54/week @ 2022-04-24 39/week @ 2022-05-01 41/week @ 2022-05-08 122/week @ 2022-05-15 71/week @ 2022-05-22 107/week @ 2022-05-29 106/week @ 2022-06-05 58/week @ 2022-06-12 24/week @ 2022-06-19 79/week @ 2022-06-26 124/week @ 2022-07-03 97/week @ 2022-07-10 96/week @ 2022-07-17 30/week @ 2022-07-24 93/week @ 2022-07-31 73/week @ 2022-08-07

296 downloads per month
Used in dms-coordinates

Apache-2.0

44KB
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