astronomical_measurements 0.2.2 copy "astronomical_measurements: ^0.2.2" to clipboard
astronomical_measurements: ^0.2.2 copied to clipboard

The library for keeping and converting astronomical measurements.

Astronomical Measurements Library #

Cover - Astronomical Measurements

GitHub License

Keeping and converting astronomical measurements. Easy-to-use and well-tested Dart package. Feel free to use it in your projects.

Usage #

Converting #

final u = Unit.parsec(12);
print('$u = ${u.toLightYear} = ${u.toKilometre}');

12.0 pc = 39.138765325920005 ly = 2475178.5718530393 au = 370281443951481.56 km

See also the folder test for the use cases.

Supported Units #

Distance, Size #

  • gigaparsec
  • megaparsec
  • kiloparsec
  • parsec
  • light year
  • million astronomical units
  • thousand astronomical units
  • hundred astronomical units
  • astronomical unit
  • million kilometres
  • thousand kilometres
  • hundred kilometres
  • kilometre
  • metre
  • centimetre
  • millimetre

Welcome #

Requests and suggestions are warmly welcome.

This package is open-source, stable and well-tested. Development happens on GitHub. Feel free to report issues or create a pull-request there.

General questions are best asked on StackOverflow.

TODO #

  • A mass.