sofars 0.6.0

Pure Rust implementation of the IAU SOFA library
Documentation
1
2
3
4
5
/// Convert spherical coordinates to Cartesian.
pub fn s2c(theta: f64, phi: f64) -> [f64; 3] {
    let cp = phi.cos();
    [theta.cos() * cp, theta.sin() * cp, phi.sin()]
}