sofars 0.6.0

Pure Rust implementation of the IAU SOFA library
Documentation
1
2
3
4
5
6
7
8
9
10
use super::{ppp, sxp};

/// P-vector plus scaled p-vector.
pub fn ppsp(a: &[f64; 3], s: f64, b: &[f64; 3]) -> [f64; 3] {
    /* s*b. */
    let sb = sxp(s, b);

    /* a + s*b. */
    ppp(a, &sb)
}