Expand description
A struct containing an Hour Angle and Declination. All units are in radians.
Fields
ha: f64
Hour angle [radians]
dec: f64
Declination [radians]
Implementations
sourceimpl HADec
impl HADec
sourcepub fn new_degrees(ha_deg: f64, dec_deg: f64) -> HADec
pub fn new_degrees(ha_deg: f64, dec_deg: f64) -> HADec
Make a new HADec
struct from values in degrees.
sourcepub fn from_radec(radec: RADec, lst_rad: f64) -> HADec
pub fn from_radec(radec: RADec, lst_rad: f64) -> HADec
sourcepub fn to_azel(self, latitude_rad: f64) -> AzEl
pub fn to_azel(self, latitude_rad: f64) -> AzEl
Convert the equatorial coordinates to horizon coordinates (azimuth and elevation), given the local latitude on Earth.
Uses ERFA.
sourcepub fn to_azel_mwa(self) -> AzEl
pub fn to_azel_mwa(self) -> AzEl
Convert the equatorial coordinates to horizon coordinates (azimuth and elevation) for the MWA’s location.
Uses ERFA.
sourcepub fn separation(self, b: Self) -> f64
pub fn separation(self, b: Self) -> f64
Calculate the distance between two sets of coordinates.
Uses ERFA.
sourcepub fn get_parallactic_angle(self, latitude_rad: f64) -> f64
pub fn get_parallactic_angle(self, latitude_rad: f64) -> f64
Get the parallactic angle at a latitude.
Uses ERFA.
sourcepub fn get_parallactic_angle_mwa(self) -> f64
pub fn get_parallactic_angle_mwa(self) -> f64
Get the parallactic angle at the MWA’s latitude.
Uses ERFA.
Trait Implementations
impl Copy for HADec
impl StructuralPartialEq for HADec
Auto Trait Implementations
impl RefUnwindSafe for HADec
impl Send for HADec
impl Sync for HADec
impl Unpin for HADec
impl UnwindSafe for HADec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more