sofars 0.6.0

Pure Rust implementation of the IAU SOFA library
Documentation
1
2
3
4
5
6
7
8
9
10
/// p-vector outer (=vector=cross) product.
pub fn pxp(a: &[f64; 3], b: &[f64; 3]) -> [f64; 3] {
    let mut axb: [f64; 3] = [0.0; 3];

    axb[0] = a[1] * b[2] - a[2] * b[1];
    axb[1] = a[2] * b[0] - a[0] * b[2];
    axb[2] = a[0] * b[1] - a[1] * b[0];

    axb
}