pub struct CIRSPosition { /* private fields */ }Implementations§
Source§impl CIRSPosition
impl CIRSPosition
pub fn new(ra: Angle, dec: Angle, epoch: TT) -> CoordResult<Self>
pub fn with_distance( ra: Angle, dec: Angle, epoch: TT, distance: Distance, ) -> CoordResult<Self>
pub fn from_degrees(ra_deg: f64, dec_deg: f64, epoch: TT) -> CoordResult<Self>
pub fn ra(&self) -> Angle
pub fn dec(&self) -> Angle
pub fn epoch(&self) -> TT
pub fn distance(&self) -> Option<Distance>
pub fn set_distance(&mut self, distance: Distance)
pub fn remove_distance(&mut self)
pub fn unit_vector(&self) -> Vector3
pub fn from_unit_vector(unit: Vector3, epoch: TT) -> CoordResult<Self>
Sourcepub fn to_tirs(&self, eop: &EopParameters) -> CoordResult<TIRSPosition>
pub fn to_tirs(&self, eop: &EopParameters) -> CoordResult<TIRSPosition>
Transforms this CIRS position to Terrestrial Intermediate Reference System (TIRS).
The position vector is scaled by distance (in AU) before transformation. If no distance is set, a unit vector is used. The resulting TIRS vector will have the same units (AU or dimensionless) as the input.
pub fn to_hour_angle( &self, observer: &Location, delta_t: f64, ) -> CoordResult<HourAnglePosition>
Trait Implementations§
Source§impl Clone for CIRSPosition
impl Clone for CIRSPosition
Source§fn clone(&self) -> CIRSPosition
fn clone(&self) -> CIRSPosition
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 CIRSPosition
impl CoordinateFrame for CIRSPosition
fn to_icrs(&self, _epoch: &TT) -> CoordResult<ICRSPosition>
fn from_icrs(icrs: &ICRSPosition, epoch: &TT) -> CoordResult<Self>
Source§impl Debug for CIRSPosition
impl Debug for CIRSPosition
Source§impl Display for CIRSPosition
impl Display for CIRSPosition
Source§impl PartialEq for CIRSPosition
impl PartialEq for CIRSPosition
impl StructuralPartialEq for CIRSPosition
Auto Trait Implementations§
impl Freeze for CIRSPosition
impl RefUnwindSafe for CIRSPosition
impl Send for CIRSPosition
impl Sync for CIRSPosition
impl Unpin for CIRSPosition
impl UnsafeUnpin for CIRSPosition
impl UnwindSafe for CIRSPosition
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