[][src]Trait nyx_space::celestia::NAIF

pub trait NAIF {
    fn id() -> i32;

    fn barycenter() -> i32 { ... }
fn satellite(pos: i32) -> i32 { ... } }

NAIF represents an object which has a NAIF ID and can be loaded from an SPK file.

Required methods

fn id() -> i32

Returns the NAIF ID of this object.

Loading content...

Provided methods

fn barycenter() -> i32

Returns the NAIF ID of the barycenter

fn satellite(pos: i32) -> i32

Returns the NAIF ID of the satellite of this planet given its position (the first satellite is number one (not zero)).

Warning: the logic here is based entirely on the NAIF ID of the main planet. No guarantee is made that the requested satellite number exists, or is present in the loaded SPK files.

Loading content...

Implementors

impl NAIF for EARTH[src]

fn barycenter() -> i32[src]

fn satellite(pos: i32) -> i32[src]

impl NAIF for JUPITER[src]

fn barycenter() -> i32[src]

fn satellite(pos: i32) -> i32[src]

impl NAIF for MARS[src]

fn barycenter() -> i32[src]

fn satellite(pos: i32) -> i32[src]

impl NAIF for MERCURY[src]

fn barycenter() -> i32[src]

fn satellite(pos: i32) -> i32[src]

impl NAIF for NEPTUNE[src]

fn barycenter() -> i32[src]

fn satellite(pos: i32) -> i32[src]

impl NAIF for SATURN[src]

fn barycenter() -> i32[src]

fn satellite(pos: i32) -> i32[src]

impl NAIF for SSB[src]

fn barycenter() -> i32[src]

fn satellite(pos: i32) -> i32[src]

impl NAIF for URANUS[src]

fn barycenter() -> i32[src]

fn satellite(pos: i32) -> i32[src]

impl NAIF for VENUS[src]

fn barycenter() -> i32[src]

fn satellite(pos: i32) -> i32[src]

Loading content...