Enum OrbitalElement
pub enum OrbitalElement {
Show 53 variants
Altitude,
AoL,
AoP,
ApoapsisRadius,
ApoapsisAltitude,
BrouwerMeanShortSemiMajorAxis,
BrouwerMeanShortEccentricity,
BrouwerMeanShortInclination,
BrouwerMeanShortRAAN,
BrouwerMeanShortAoP,
BrouwerMeanShortMeanAnomaly,
C3,
Declination,
EccentricAnomaly,
Eccentricity,
EquinoctialH,
EquinoctialK,
EquinoctialP,
EquinoctialQ,
EquinoctialLambda,
Energy,
FlightPathAngle,
Height,
Latitude,
Longitude,
Hmag,
HX,
HY,
HZ,
HyperbolicAnomaly,
Inclination,
MeanAnomaly,
PeriapsisRadius,
PeriapsisAltitude,
Period,
RightAscension,
RAAN,
Rmag,
SemiParameter,
SemiMajorAxis,
SemiMajorAxisAltitude,
SemiMinorAxis,
TrueAnomaly,
TrueLongitude,
VelocityDeclination,
Vmag,
X,
Y,
Z,
VX,
VY,
VZ,
Custom,
}Expand description
Orbital element defines all of the supported orbital elements in ANISE, which are all built from a State.
Variants§
Altitude
Altitude (km)
AoL
Argument of Latitude (deg)
AoP
Argument of Periapse (deg)
ApoapsisRadius
Radius of apoapsis (km)
ApoapsisAltitude
Altitude of apoapsis (km)
BrouwerMeanShortSemiMajorAxis
Brouwer Mean Short Semi major axis (km)
BrouwerMeanShortEccentricity
Brouwer Mean Short Eccentricity
BrouwerMeanShortInclination
Brouwer Mean Short Inclination (deg)
BrouwerMeanShortRAAN
Brouwer Mean Short RAAN (deg)
BrouwerMeanShortAoP
Brouwer Mean Short Argument of Periapse (deg)
BrouwerMeanShortMeanAnomaly
Brouwer Mean Short Mean Anomaly (deg)
C3
C_3 in (km/s)^2
Declination
Declination (deg) (also called elevation if in a body fixed frame)
EccentricAnomaly
Eccentric anomaly (deg)
Eccentricity
Eccentricity (no unit)
EquinoctialH
Equinoctial H element
EquinoctialK
Equinoctial K element
EquinoctialP
Equinoctial P element
EquinoctialQ
Equinoctial Q element
EquinoctialLambda
Equinoctial mean longitude Lambda (deg)
Energy
Specific energy
FlightPathAngle
Flight path angle (deg)
Height
Geodetic height (km)
Latitude
Geodetic latitude (deg)
Longitude
Geodetic longitude (deg)
Hmag
Orbital momentum
HX
X component of the orbital momentum vector
HY
Y component of the orbital momentum vector
HZ
Z component of the orbital momentum vector
HyperbolicAnomaly
Hyperbolic anomaly (deg), only valid for hyperbolic orbits
Inclination
Inclination (deg)
MeanAnomaly
Mean anomaly (deg)
PeriapsisRadius
Radius of periapse (km)
PeriapsisAltitude
Altitude of periapse (km)
Period
Orbital period (s)
RightAscension
Right ascension (deg)
RAAN
Right ascension of the ascending node (deg)
Rmag
Norm of the radius vector
SemiParameter
Semi parameter (km)
SemiMajorAxis
Semi major axis (km)
SemiMajorAxisAltitude
Semi major axis altitude (km)
SemiMinorAxis
Semi minor axis (km)
TrueAnomaly
True anomaly
TrueLongitude
True longitude
VelocityDeclination
Velocity declination (deg)
Vmag
Norm of the velocity vector (km/s)
X
X component of the radius (km)
Y
Y component of the radius (km)
Z
Z component of the radius (km)
VX
X component of the velocity (km/s)
VY
Y component of the velocity (km/s)
VZ
Z component of the velocity (km/s)
Custom
Implementations§
§impl OrbitalElement
impl OrbitalElement
§impl OrbitalElement
impl OrbitalElement
pub fn py_evaluate(&self, orbit: CartesianState) -> Result<f64, PyErr>
pub fn py_evaluate(&self, orbit: CartesianState) -> Result<f64, PyErr>
Evaluate the orbital element enum variant for the provided orbit
:type orbit: Orbit :rtype: float
Trait Implementations§
§impl Clone for OrbitalElement
impl Clone for OrbitalElement
§fn clone(&self) -> OrbitalElement
fn clone(&self) -> OrbitalElement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for OrbitalElement
impl Debug for OrbitalElement
§impl<'de> Deserialize<'de> for OrbitalElement
impl<'de> Deserialize<'de> for OrbitalElement
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OrbitalElement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OrbitalElement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Display for OrbitalElement
impl Display for OrbitalElement
§impl<'a, 'py> FromPyObject<'a, 'py> for OrbitalElementwhere
OrbitalElement: Clone,
impl<'a, 'py> FromPyObject<'a, 'py> for OrbitalElementwhere
OrbitalElement: Clone,
§type Error = PyClassGuardError<'a, 'py>
type Error = PyClassGuardError<'a, 'py>
§fn extract(
obj: Borrowed<'a, 'py, PyAny>,
) -> Result<OrbitalElement, <OrbitalElement as FromPyObject<'a, 'py>>::Error>
fn extract( obj: Borrowed<'a, 'py, PyAny>, ) -> Result<OrbitalElement, <OrbitalElement as FromPyObject<'a, 'py>>::Error>
§impl<'py> IntoPyObject<'py> for OrbitalElement
impl<'py> IntoPyObject<'py> for OrbitalElement
§type Target = OrbitalElement
type Target = OrbitalElement
§type Output = Bound<'py, <OrbitalElement as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <OrbitalElement as IntoPyObject<'py>>::Target>
§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<OrbitalElement as IntoPyObject<'py>>::Output, <OrbitalElement as IntoPyObject<'py>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<OrbitalElement as IntoPyObject<'py>>::Output, <OrbitalElement as IntoPyObject<'py>>::Error>
§impl PartialEq for OrbitalElement
impl PartialEq for OrbitalElement
§impl PyClass for OrbitalElement
impl PyClass for OrbitalElement
§impl PyTypeInfo for OrbitalElement
impl PyTypeInfo for OrbitalElement
§const NAME: &'static str = <Self as ::pyo3::PyClass>::NAME
const NAME: &'static str = <Self as ::pyo3::PyClass>::NAME
prefer using ::type_object(py).name() to get the correct runtime value
§const MODULE: Option<&'static str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&'static str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
prefer using ::type_object(py).module() to get the correct runtime value
§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type or a subclass of this type.§fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type.§impl Serialize for OrbitalElement
impl Serialize for OrbitalElement
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
§impl StaticType for OrbitalElement
impl StaticType for OrbitalElement
§fn static_type() -> SimpleType
fn static_type() -> SimpleType
impl Copy for OrbitalElement
impl StructuralPartialEq for OrbitalElement
Auto Trait Implementations§
impl Freeze for OrbitalElement
impl RefUnwindSafe for OrbitalElement
impl Send for OrbitalElement
impl Sync for OrbitalElement
impl Unpin for OrbitalElement
impl UnsafeUnpin for OrbitalElement
impl UnwindSafe for OrbitalElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromDhall for Twhere
T: DeserializeOwned,
impl<T> FromDhall for Twhere
T: DeserializeOwned,
fn from_dhall(v: &Value) -> Result<T, Error>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
self into an owned Python object, dropping type information and unbinding it
from the 'py lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
self into a Python object. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
§const NAME: &'static str = T::NAME
const NAME: &'static str = T::NAME
Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.
§fn type_check(object: &Bound<'_, PyAny>) -> bool
fn type_check(object: &Bound<'_, PyAny>) -> bool
§fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
isinstance and issubclass function. Read more§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.