pub struct TIRSPosition { /* private fields */ }Implementations§
Source§impl TIRSPosition
impl TIRSPosition
pub fn new(x: f64, y: f64, z: f64, epoch: TT) -> Self
pub fn x(&self) -> f64
pub fn y(&self) -> f64
pub fn z(&self) -> f64
pub fn epoch(&self) -> TT
pub fn position_vector(&self) -> Vector3
pub fn from_position_vector(pos: Vector3, epoch: TT) -> Self
pub fn geocentric_distance(&self) -> f64
pub fn distance_to(&self, other: &Self) -> f64
Sourcepub fn compute_delta_t(epoch: &TT, eop: &EopParameters) -> CoordResult<f64>
pub fn compute_delta_t(epoch: &TT, eop: &EopParameters) -> CoordResult<f64>
Computes ΔT (TT - UT1) using EOP parameters.
§EOP Freshness Check
Rejects EOP data >1 day from the target epoch. This ensures UT1-UTC is current, as Earth’s rotation is irregular. For sparse datasets, consider:
- Using an interpolator to fill gaps (see
EopManager) - Relaxing this check if lower precision is acceptable (modify this threshold)
- Pre-fetching/caching EOP data for your observation window
Typical use cases handle this via interpolation, so sparse raw data should be rare.
pub fn to_itrs( &self, epoch: &TT, eop: &EopParameters, ) -> CoordResult<ITRSPosition>
pub fn from_itrs( itrs: &ITRSPosition, epoch: &TT, eop: &EopParameters, ) -> CoordResult<Self>
pub fn from_cirs( cirs_vec: Vector3, epoch: &TT, eop: &EopParameters, ) -> CoordResult<Self>
pub fn to_cirs(&self, eop: &EopParameters) -> CoordResult<CIRSPosition>
Trait Implementations§
Source§impl Clone for TIRSPosition
impl Clone for TIRSPosition
Source§fn clone(&self) -> TIRSPosition
fn clone(&self) -> TIRSPosition
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 Debug for TIRSPosition
impl Debug for TIRSPosition
Source§impl Display for TIRSPosition
impl Display for TIRSPosition
Source§impl PartialEq for TIRSPosition
impl PartialEq for TIRSPosition
impl StructuralPartialEq for TIRSPosition
Auto Trait Implementations§
impl Freeze for TIRSPosition
impl RefUnwindSafe for TIRSPosition
impl Send for TIRSPosition
impl Sync for TIRSPosition
impl Unpin for TIRSPosition
impl UnsafeUnpin for TIRSPosition
impl UnwindSafe for TIRSPosition
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