pub struct PointingModel { /* private fields */ }Implementations§
Source§impl PointingModel
impl PointingModel
pub fn new() -> Self
pub fn add_term(&mut self, name: &str) -> Result<()>
pub fn remove_term(&mut self, name: &str)
pub fn remove_all(&mut self)
pub fn fix_term(&mut self, name: &str) -> bool
pub fn fix_all(&mut self)
pub fn unfix_term(&mut self, name: &str) -> bool
pub fn unfix_all(&mut self)
pub fn is_fixed(&self, idx: usize) -> bool
pub fn fixed_flags(&self) -> &[bool]
pub fn set_parallel(&mut self, name: &str) -> bool
pub fn set_chained(&mut self, name: &str) -> bool
pub fn set_all_parallel(&mut self)
pub fn set_all_chained(&mut self)
pub fn is_parallel(&self, idx: usize) -> bool
pub fn zero_coefficients(&mut self)
pub fn term_count(&self) -> usize
pub fn term_names(&self) -> Vec<&str>
pub fn terms(&self) -> &[Box<dyn Term>]
pub fn coefficients(&self) -> &[f64]
pub fn set_coefficients(&mut self, coeffs: &[f64]) -> Result<()>
pub fn apply_equatorial( &self, h: f64, dec: f64, lat: f64, pier: f64, ) -> (f64, f64)
pub fn apply_altaz(&self, az: f64, el: f64, lat: f64) -> (f64, f64)
pub fn apply_equatorial_chained( &self, h: f64, dec: f64, lat: f64, pier: f64, ) -> (f64, f64)
pub fn target_to_command( &self, ra: Angle, dec: Angle, lst: Angle, lat: Angle, pier: PierSide, ) -> (Angle, Angle)
pub fn command_to_target( &self, ra_encoder: Angle, dec_encoder: Angle, lst: Angle, lat: Angle, pier: PierSide, ) -> (Angle, Angle)
pub fn predict_breakdown( &self, h: f64, dec: f64, lat: f64, pier: f64, ) -> Vec<(String, f64, f64)>
Trait Implementations§
Source§impl Default for PointingModel
impl Default for PointingModel
Source§fn default() -> PointingModel
fn default() -> PointingModel
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PointingModel
impl !RefUnwindSafe for PointingModel
impl Send for PointingModel
impl Sync for PointingModel
impl Unpin for PointingModel
impl UnsafeUnpin for PointingModel
impl !UnwindSafe for PointingModel
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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.