You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: anise/src/orientations/rotations.rs
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,10 @@ use crate::math::units::*;
21
21
usecrate::math::Vector3;
22
22
usecrate::prelude::Frame;
23
23
24
+
#[cfg(feature = "python")]
25
+
use pyo3::prelude::*;
26
+
27
+
#[cfg_attr(feature = "python", pymethods)]
24
28
implAlmanac{
25
29
/// Returns the 6x6 DCM needed to rotation the `from_frame` to the `to_frame`.
26
30
///
@@ -124,7 +128,9 @@ impl Almanac {
124
128
125
129
(dcm * state).context(OrientationPhysicsSnafu{})
126
130
}
131
+
}
127
132
133
+
implAlmanac{
128
134
/// Rotates a state with its origin (`to_frame`) and given its units (distance_unit, time_unit), returns that state with respect to the requested frame
129
135
///
130
136
/// **WARNING:** This function only performs the translation and no rotation _whatsoever_. Use the `transform_state_to` function instead to include rotations.
0 commit comments