[−][src]Trait nyx_space::celestia::NAIF
NAIF
represents an object which has a NAIF ID and can be loaded from an SPK file.
Required methods
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.