We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9bb0c0 commit 7f6b65fCopy full SHA for 7f6b65f
crates/lox-frames/src/dynamic.rs
@@ -9,17 +9,23 @@
9
use std::str::FromStr;
10
11
use lox_bodies::{DynOrigin, Origin, TryRotationalElements};
12
-use lox_time::{Time, julian_dates::JulianDate, time_scales::{Tdb, TimeScale, TryToScale}};
+use lox_time::{
13
+ Time,
14
+ julian_dates::JulianDate,
15
+ time_scales::{Tdb, TimeScale, TryToScale},
16
+};
17
use thiserror::Error;
18
19
use crate::{
20
frames::{Cirf, Icrf, Itrf, Tirf},
- traits::{ReferenceFrame, TryQuasiInertial, TryBodyFixed,
- NonQuasiInertialFrameError, NonBodyFixedFrameError, TryRotateTo},
21
+ traits::{
22
+ NonBodyFixedFrameError, NonQuasiInertialFrameError, ReferenceFrame, TryBodyFixed,
23
+ TryQuasiInertial, TryRotateTo,
24
+ },
25
transformations::{
26
+ Rotation,
27
iau::{IauFrameTransformationError, icrf_to_iau},
28
iers::{cirf_to_tirf, icrf_to_cirf, tirf_to_itrf},
- Rotation,
29
},
30
};
31
@@ -269,4 +275,4 @@ mod tests {
269
275
assert_close!(r_act, r_exp, 1e-8);
270
276
assert_close!(v_act, v_exp, 1e-5);
271
277
}
272
-}
278
+}
crates/lox-frames/src/frames.rs
@@ -8,7 +8,7 @@
8
use lox_bodies::RotationalElements;
-use crate::traits::{ReferenceFrame, QuasiInertial, BodyFixed};
+use crate::traits::{BodyFixed, QuasiInertial, ReferenceFrame};
#[derive(Clone, Copy, Debug, PartialEq, Eq, Ord, PartialOrd)]
pub struct Icrf;
@@ -107,4 +107,4 @@ where
107
fn is_rotating(&self) -> bool {
108
true
109
110
crates/lox-frames/src/lib.rs
@@ -6,7 +6,6 @@
6
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
7
*/
-// Module declarations
pub mod dynamic;
pub mod frames;
pub mod traits;
@@ -15,11 +14,9 @@ pub mod transformations;
#[cfg(feature = "python")]
pub mod python;
-// Re-export commonly used types
pub use dynamic::{DynFrame, UnknownFrameError};
-pub use frames::{Icrf, Cirf, Tirf, Itrf, Iau};
+pub use frames::{Cirf, Iau, Icrf, Itrf, Tirf};
pub use traits::{
- ReferenceFrame, QuasiInertial, BodyFixed,
- TryQuasiInertial, TryBodyFixed, TryRotateTo,
- NonQuasiInertialFrameError, NonBodyFixedFrameError
-};
+ BodyFixed, NonBodyFixedFrameError, NonQuasiInertialFrameError, QuasiInertial, ReferenceFrame,
+ TryBodyFixed, TryQuasiInertial, TryRotateTo,
crates/lox-frames/src/python.rs
@@ -6,12 +6,12 @@
-use pyo3::{PyErr, PyResult, exceptions::PyValueError, pyclass, pymethods};
dynamic::{DynFrame, UnknownFrameError},
+ traits::ReferenceFrame,
transformations::iau::IauFrameTransformationError,
- traits::ReferenceFrame
+use pyo3::{PyErr, PyResult, exceptions::PyValueError, pyclass, pymethods};
impl From<UnknownFrameError> for PyErr {
fn from(err: UnknownFrameError) -> Self {
@@ -49,4 +49,4 @@ impl PyFrame {
49
fn abbreviation(&self) -> String {
50
self.0.abbreviation()
51
52
crates/lox-frames/src/traits.rs
@@ -58,4 +58,4 @@ pub trait TryRotateTo<T: TimeScale, R: ReferenceFrame, P> {
58
time: Time<T>,
59
provider: Option<&P>,
60
) -> Result<Rotation, Self::Error>;
61
crates/lox-frames/src/transformations.rs
@@ -13,4 +13,4 @@ pub mod rotations;
// Re-export commonly used items
pub use iau::IauFrameTransformationError;
pub use iers::{cirf_to_tirf, icrf_to_cirf, tirf_to_itrf};
-pub use rotations::Rotation;
+pub use rotations::Rotation;
crates/lox-orbits/src/analysis.rs
@@ -27,10 +27,10 @@ use std::f64::consts::PI;
use crate::events::{Window, find_windows, intersect_windows};
-use lox_frames::{DynFrame, Iau, Icrf, TryRotateTo};
use crate::ground::{DynGroundLocation, DynGroundPropagator, GroundLocation, Observables};
32
use crate::states::{DynState, State};
33
use crate::trajectories::{DynTrajectory, Trajectory};
+use lox_frames::{DynFrame, Iau, Icrf, TryRotateTo};
34
35
// Salvatore Alfano, David Negron, Jr., and Jennifer L. Moore
36
// Rapid Determination of Satellite Visibility Periods
crates/lox-orbits/src/elements.rs
@@ -16,8 +16,8 @@ use lox_time::deltas::TimeDelta;
use lox_time::time_scales::{DynTimeScale, TimeScale};
use lox_time::{DynTime, Time};
-use lox_frames::{DynFrame, Icrf, ReferenceFrame};
use crate::states::State;
+use lox_frames::{DynFrame, Icrf, ReferenceFrame};
#[derive(Debug, Clone, PartialEq)]
pub struct KeplerianElements {
crates/lox-orbits/src/ground.rs
@@ -8,12 +8,12 @@
use std::f64::consts::FRAC_PI_2;
use crate::propagators::Propagator;
use crate::trajectories::{DynTrajectory, Trajectory, TrajectoryError};
use glam::{DMat3, DVec3};
use lox_bodies::{DynOrigin, RotationalElements, Spheroid, TrySpheroid};
use lox_math::types::units::Radians;
use lox_time::time_scales::TryToScale;
use lox_time::time_scales::{Tdb, TimeScale};
crates/lox-orbits/src/propagators.rs
@@ -3,8 +3,8 @@ use lox_time::Time;
3
use lox_time::time_scales::TimeScale;
4
5
use crate::trajectories::TrajectoryError;
-use lox_frames::ReferenceFrame;
use crate::{states::State, trajectories::Trajectory};
+use lox_frames::ReferenceFrame;
pub mod semi_analytical;
pub mod sgp4;
0 commit comments