Enum nyx_space::cosmic::eclipse::Frame[][src]

pub enum Frame {
    Celestial {
        gm: f64,
        ephem_path: [Option<usize>; 3],
        frame_path: [Option<usize>; 3],
    },
    Geoid {
        gm: f64,
        flattening: f64,
        equatorial_radius: f64,
        semi_major_radius: f64,
        ephem_path: [Option<usize>; 3],
        frame_path: [Option<usize>; 3],
    },
    VNC,
    RCN,
    RIC,
    SEZ,
    Inertial,
}

Variants

Celestial

Fields

gm: f64
ephem_path: [Option<usize>; 3]
frame_path: [Option<usize>; 3]

Any celestial frame which only has a GM (e.g. 3 body frames)

Geoid

Fields

gm: f64
flattening: f64
equatorial_radius: f64
semi_major_radius: f64
ephem_path: [Option<usize>; 3]
frame_path: [Option<usize>; 3]

Any Geoid which has a GM, flattening value, etc.

VNC

Velocity, Normal, Cross (called VNB in GMAT)

RCN

Radial, Cross, Normal

RIC

Radial, in-track, normal

SEZ

SEZ or topocentric frame. The positive horizontal vector S is due south , the positive horizontal vector E is east, and the vector Z normal to the surface of the earth (up) is the third axis.

Inertial

Used as a placeholder only

Implementations

Allows mutuating the GM for this frame

Returns the angular velocity for some planets and moons Source for Earth: G. Xu and Y. Xu, “GPS”, DOI 10.1007/978-3-662-50367-6_2, 2016 (confirmed by https://hpiers.obspm.fr/eop-pc/models/constants.html) Source for everything else: https://en.wikipedia.org/w/index.php?title=Day&oldid=1008298887

Returns whether this frame is body fixed or not

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Performance hack: Clone doesn’t get inlined for Copy types in debug mode, so make it inline anyway.

Tests if Self the same as the type T Read more

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.