pub struct SelenographicPosition { /* private fields */ }Implementations§
Source§impl SelenographicPosition
impl SelenographicPosition
pub fn new(latitude: Angle, longitude: Angle) -> CoordResult<Self>
pub fn with_radius( latitude: Angle, longitude: Angle, radius: Distance, ) -> CoordResult<Self>
pub fn from_degrees(lat_deg: f64, lon_deg: f64) -> CoordResult<Self>
pub fn latitude(&self) -> Angle
pub fn longitude(&self) -> Angle
pub fn radius(&self) -> Option<Distance>
pub fn set_radius(&mut self, radius: Distance)
pub fn sub_earth_point(epoch: &TT) -> CoordResult<Self>
pub fn nearside_center() -> Self
pub fn farside_center() -> Self
pub fn north_pole() -> Self
pub fn south_pole() -> Self
pub fn angular_separation(&self, other: &Self) -> Angle
pub fn is_visible_from_earth(&self, epoch: &TT) -> bool
Trait Implementations§
Source§impl Clone for SelenographicPosition
impl Clone for SelenographicPosition
Source§fn clone(&self) -> SelenographicPosition
fn clone(&self) -> SelenographicPosition
Returns a duplicate 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 CoordinateFrame for SelenographicPosition
impl CoordinateFrame for SelenographicPosition
fn to_icrs(&self, epoch: &TT) -> CoordResult<ICRSPosition>
fn from_icrs(icrs: &ICRSPosition, epoch: &TT) -> CoordResult<Self>
Source§impl Debug for SelenographicPosition
impl Debug for SelenographicPosition
Source§impl Display for SelenographicPosition
impl Display for SelenographicPosition
Source§impl PartialEq for SelenographicPosition
impl PartialEq for SelenographicPosition
impl StructuralPartialEq for SelenographicPosition
Auto Trait Implementations§
impl Freeze for SelenographicPosition
impl RefUnwindSafe for SelenographicPosition
impl Send for SelenographicPosition
impl Sync for SelenographicPosition
impl Unpin for SelenographicPosition
impl UnsafeUnpin for SelenographicPosition
impl UnwindSafe for SelenographicPosition
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