Struct spice::spicetools::System [−][src]
pub struct System { /* fields omitted */ }
System type to quickly provide sets of basic functions.
Example
The type System
is created from the builder SystemBuilder
.
ⓘ
use spice; let mut system = spice::SystemBuilder::default() .kernel("/path/to/metakernels.mk")? .frame("J2000") .observer("HERA") .target("DIMORPHOS") .start_date("2027-MAR-23 16:00:00") .duration(129.0 * spice::DAY) .aberration_correction("NONE") .build()?; system.unload()?;
Implementations
impl System
[src]
pub fn kernel(&self) -> &Kernel
[src]
Get a reference to the kernel.
pub fn frame(&self) -> String
[src]
Get the frame.
pub fn observer(&self) -> String
[src]
Get the observer.
pub fn target(&self) -> String
[src]
Get the target.
pub fn start_date(&self) -> String
[src]
Get the start date.
pub fn duration(&self) -> f64
[src]
Get the duration.
pub fn aberration_correction(&self) -> String
[src]
Get the aberration correction.
pub fn load(&mut self) -> Result<(), KernelError>
[src]
Load the kernel of the system.
pub fn unload(&mut self) -> Result<(), KernelError>
[src]
Unload the kernel of the system.
pub fn time_start(&self) -> f64
[src]
Get the time at the start.
pub fn time_end(&self) -> f64
[src]
Get the time at the end.
pub fn position_start(&self) -> Vector<f64>
[src]
Get the position at the start.
pub fn position_end(&self) -> Vector<f64>
[src]
Get the position at the end.
pub fn number_points(&self, time_step: f64) -> usize
[src]
Get the number of points from start to end date with time step.
pub fn times(&self, time_step: f64) -> List<f64>
[src]
Get the times.
pub fn times_formatted(&self, time_step: f64) -> Vec<String>
[src]
Get the times formatted.
pub fn positions(&self, time_step: f64) -> Vectors<f64>
[src]
Get the positions from start to end with time step.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnwindSafe for System
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub unsafe fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,