Struct vsop87::SphericalCoordinates
source · pub struct SphericalCoordinates { /* private fields */ }
Expand description
Structure representing spherical coordinates of a body.
Implementations§
source§impl SphericalCoordinates
impl SphericalCoordinates
sourcepub fn longitude(&self) -> f64
pub 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.
sourcepub fn latitude(&self) -> f64
pub 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.
Trait Implementations§
source§impl Clone for SphericalCoordinates
impl Clone for SphericalCoordinates
source§fn clone(&self) -> SphericalCoordinates
fn clone(&self) -> SphericalCoordinates
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SphericalCoordinates
impl Debug for SphericalCoordinates
source§impl PartialEq for SphericalCoordinates
impl PartialEq for SphericalCoordinates
source§fn eq(&self, other: &SphericalCoordinates) -> bool
fn eq(&self, other: &SphericalCoordinates) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SphericalCoordinates
impl StructuralPartialEq for SphericalCoordinates
Auto Trait Implementations§
impl RefUnwindSafe for SphericalCoordinates
impl Send for SphericalCoordinates
impl Sync for SphericalCoordinates
impl Unpin for SphericalCoordinates
impl UnwindSafe for SphericalCoordinates
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more