pub fn velocity(
parallax: f64,
right_ascension: f64,
declination: f64,
proper_motion_ra: f64,
proper_motion_dec: f64,
radial_velocity: f64
) -> DVec3Expand description
Velocity of a single celestial object relative to the sun. Can be used in conjuction with companion functions to place a twobody system relative to the sun. parallax is in mas (milliarcseconds), right_ascension is in degrees and declination in degrees, proper_motion_ra is the right ascension part of the proper motion variable in as (arcseconds), proper_motion_dec is the declination part of the proper motion variable in as (arcseconds) and radial_velocity is in km/s. Output is a 3-dimensional vector with x, y and z in that order all in meters/second.