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

impl Clone for System[src]

impl Debug for System[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.