Function astro::orbit::elliptic::length
[−]
[src]
pub fn length(a: f64, b: f64) -> f64
Computes the approximate length of an ellipse
Returns
approx_length: An approximate value for the length of the ellipse (same unit as that ofaandb)
The error in approx_length is:
- less than 0.001% if e < 0.88
- less than 0.01% if e < 0.95
- 1% if e = 0.9997
- 3% if e = 1
Arguments
a: Semimajor axis of the ellipse (same unit as that ofb)b: Semiminor axis of the ellipse (same unit as that ofa)