Struct vsop87::SphericalCoordinates
[−]
[src]
pub struct SphericalCoordinates { /* fields omitted */ }
Structure representing spherical coordinates of a body.
Methods
impl SphericalCoordinates
[src]
fn longitude(&self) -> f64
Gets the ecliptic longitude of the body, in radians.
This value represents the angular distance of an object along the ecliptic plane from the primary direction. In the case of heliocentric coordinates, it represents the l parameter, in geocentric coordinates, represents the λ parameter.
fn latitude(&self) -> f64
Gets the ecliptic latitude of the body, in radians.
This value represents the angular distance of an object from the ecliptic towards the north ecliptic pole. In the case of heliocentric coordinates, it represents the b parameter, in geocentric coordinates, represents the β parameter.
fn distance(&self) -> f64
Gets the distance to the center of mass, in astronomical units (AU).
In the case of heliocentric coordinates, it represents the r parameter, in geocentric coordinates, represents the Δ parameter.
Trait Implementations
impl Debug for SphericalCoordinates
[src]
impl Clone for SphericalCoordinates
[src]
fn clone(&self) -> SphericalCoordinates
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for SphericalCoordinates
[src]
impl PartialEq for SphericalCoordinates
[src]
fn eq(&self, __arg_0: &SphericalCoordinates) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SphericalCoordinates) -> bool
This method tests for !=
.