pub struct AzimuthElevation(/* private fields */);Expand description
WGS84 local horizontal coordinates consisting of an Azimuth and Elevation, with angles stored as radians
Azimuth can range from $0$ to $2\pi$. North has an azimuth of $0$, east has an azimuth of $\frac{\pi}{2}$
Elevation can range from $-\frac{\pi}{2}$ to $\frac{\pi}{2}$. Up has an elevation of $\frac{\pi}{2}$, down an elevation of $-\frac{\pi}{2}$
Implementations§
Source§impl AzimuthElevation
impl AzimuthElevation
Sourcepub fn new(az: f64, el: f64) -> AzimuthElevation
pub fn new(az: f64, el: f64) -> AzimuthElevation
Create an AzimuthElevation object from the given azimuth and elevation
Sourcepub fn as_array_mut(&mut self) -> &mut [f64; 2]
pub fn as_array_mut(&mut self) -> &mut [f64; 2]
Get a mutable reference to the inner array storing the data
Sourcepub fn as_vector_mut(&mut self) -> &mut Vector2<f64>
pub fn as_vector_mut(&mut self) -> &mut Vector2<f64>
Get a mutable reference to the inner Vector2 storing the data
Trait Implementations§
Source§impl AsMut<Matrix<f64, Const<2>, Const<1>, ArrayStorage<f64, 2, 1>>> for AzimuthElevation
impl AsMut<Matrix<f64, Const<2>, Const<1>, ArrayStorage<f64, 2, 1>>> for AzimuthElevation
Source§impl AsRef<Matrix<f64, Const<2>, Const<1>, ArrayStorage<f64, 2, 1>>> for AzimuthElevation
impl AsRef<Matrix<f64, Const<2>, Const<1>, ArrayStorage<f64, 2, 1>>> for AzimuthElevation
Source§impl Clone for AzimuthElevation
impl Clone for AzimuthElevation
Source§fn clone(&self) -> AzimuthElevation
fn clone(&self) -> AzimuthElevation
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 AzimuthElevation
impl Debug for AzimuthElevation
Source§impl Default for AzimuthElevation
impl Default for AzimuthElevation
Source§fn default() -> AzimuthElevation
fn default() -> AzimuthElevation
Returns the “default value” for a type. Read more
Source§impl From<Matrix<f64, Const<2>, Const<1>, ArrayStorage<f64, 2, 1>>> for AzimuthElevation
impl From<Matrix<f64, Const<2>, Const<1>, ArrayStorage<f64, 2, 1>>> for AzimuthElevation
Source§impl PartialEq for AzimuthElevation
impl PartialEq for AzimuthElevation
Source§impl PartialOrd for AzimuthElevation
impl PartialOrd for AzimuthElevation
impl Copy for AzimuthElevation
impl StructuralPartialEq for AzimuthElevation
Auto Trait Implementations§
impl Freeze for AzimuthElevation
impl RefUnwindSafe for AzimuthElevation
impl Send for AzimuthElevation
impl Sync for AzimuthElevation
impl Unpin for AzimuthElevation
impl UnwindSafe for AzimuthElevation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.