pub struct AzEl {
pub az: f64,
pub el: f64,
}
Expand description
A struct containing an Azimuth and Elevation. All units are in radians.
Fields§
§az: f64
Hour angle [radians]
el: f64
Declination [radians]
Implementations§
source§impl AzEl
impl AzEl
sourcepub fn from_radians(az_rad: f64, el_rad: f64) -> AzEl
pub fn from_radians(az_rad: f64, el_rad: f64) -> AzEl
Make a new AzEl
struct from values in radians.
sourcepub fn from_degrees(az_deg: f64, el_deg: f64) -> AzEl
pub fn from_degrees(az_deg: f64, el_deg: f64) -> AzEl
Make a new AzEl
struct from values in degrees.
sourcepub fn new(az_rad: f64, el_rad: f64) -> AzEl
👎Deprecated: use AzEl::from_radians
instead
pub fn new(az_rad: f64, el_rad: f64) -> AzEl
AzEl::from_radians
insteadMake a new AzEl
struct from values in radians.
sourcepub fn new_degrees(az_deg: f64, el_deg: f64) -> AzEl
👎Deprecated: use AzEl::from_degrees
instead
pub fn new_degrees(az_deg: f64, el_deg: f64) -> AzEl
AzEl::from_degrees
insteadMake a new AzEl
struct from values in degrees.
sourcepub fn to_hadec(self, latitude_rad: f64) -> HADec
pub fn to_hadec(self, latitude_rad: f64) -> HADec
Convert the horizon coordinates to equatorial coordinates (Hour Angle and Declination), given the local latitude on Earth.
sourcepub fn to_hadec_mwa(self) -> HADec
pub fn to_hadec_mwa(self) -> HADec
Convert the horizon coordinates to equatorial coordinates (Hour Angle and Declination) for the MWA’s location.
Trait Implementations§
source§impl PartialEq<AzEl> for AzEl
impl PartialEq<AzEl> for AzEl
impl Copy for AzEl
impl StructuralPartialEq for AzEl
Auto Trait Implementations§
impl RefUnwindSafe for AzEl
impl Send for AzEl
impl Sync for AzEl
impl Unpin for AzEl
impl UnwindSafe for AzEl
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