Skip to main content

PrecessionAngles

Enum PrecessionAngles 

Source
pub enum PrecessionAngles {
    Iau1976 {
        zeta: Angle,
        z: Angle,
        theta: Angle,
    },
    Iau2000 {
        psia: Angle,
        oma: Angle,
        chia: Angle,
    },
    Iau2006 {
        gamb: Angle,
        phib: Angle,
        psib: Angle,
        epsa: Angle,
    },
}
Expand description

Precession angles for a specific IAU model.

Variants§

§

Iau1976

IAU1976 precession angles.

Fields

§zeta: Angle

Equatorial precession angle zeta_A.

§z: Angle

Equatorial precession angle z_A.

§theta: Angle

Ecliptic precession angle theta_A.

§

Iau2000

IAU2000 precession angles.

Fields

§psia: Angle

Precession in longitude.

§oma: Angle

Precession in obliquity.

§chia: Angle

Planetary precession.

§

Iau2006

IAU2006 Fukushima-Williams precession angles.

Fields

§gamb: Angle

First rotation angle (F-W parameterisation).

§phib: Angle

Second rotation angle (F-W parameterisation).

§psib: Angle

Third rotation angle (F-W parameterisation).

§epsa: Angle

Mean obliquity of the ecliptic.

Implementations§

Source§

impl PrecessionAngles

Source

pub fn iau1976(time: Time<Tt>) -> Self

Computes precession angles using the IAU 1976 (Lieske) model.

Source

pub fn iau2000(time: Time<Tt>) -> Self

Computes precession angles using the IAU 2000 model.

Source

pub fn iau2006(time: Time<Tt>) -> Self

Computes precession angles using the IAU 2006 (Fukushima-Williams) model.

Source

pub fn bias_precession_matrix(&self) -> DMat3

Returns the combined bias-precession rotation matrix.

Source

pub fn precession_matrix(&self) -> DMat3

Returns the precession-only rotation from J2000 to the Mean-of-Date (MOD) frame, without the frame bias.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.