erfars 0.2.0

Safe Rust bindings to the Essential Routines for Fundamental Astronomy (ERFA) C library.
Documentation
//! ERFA Galactic Coordinates Functions

use crate::raw::galacticcoordinates::*;

/// Transformation from Galactic coordinates to ICRS.
///
/// Please see the full ERFA docs for this function [here](https://github.com/liberfa/erfa/blob/master/src/g2icrs.c)
pub fn G2icrs(dl: f64, db: f64) -> (f64, f64) {
    let mut dr: f64 = 0.0;
    let mut dd: f64 = 0.0;
    unsafe { eraG2icrs(dl, db, &mut dr, &mut dd) }
    return (dr, dd);
}

/// Transformation from ICRS to Galactic coordinates.
///
/// Please see the full ERFA docs for this function [here](https://github.com/liberfa/erfa/blob/master/src/icrs2g.c)
pub fn Icrs2g(dr: f64, dd: f64) -> (f64, f64) {
    let mut dl: f64 = 0.0;
    let mut db: f64 = 0.0;
    unsafe { eraIcrs2g(dr, dd, &mut dl, &mut db) }
    return (dl, db);
}