pub struct Trajectory {
pub frames: Vec<Frame>,
pub step: Option<Vec<i64>>,
pub time: Option<Vec<f64>>,
}Expand description
Trajectory-like list of frame states plus shared indexing arrays.
Fields§
§frames: Vec<Frame>Ordered frame-like states.
step: Option<Vec<i64>>Optional discrete step indices.
time: Option<Vec<f64>>Optional physical time values.
Implementations§
Source§impl Trajectory
impl Trajectory
Sourcepub fn new() -> Trajectory
pub fn new() -> Trajectory
Create an empty trajectory.
Sourcepub fn from_frames(frames: Vec<Frame>) -> Trajectory
pub fn from_frames(frames: Vec<Frame>) -> Trajectory
Build a trajectory from frame states.
Sourcepub fn validate(&self) -> Result<(), MolRsError>
pub fn validate(&self) -> Result<(), MolRsError>
Validate shared axis lengths.
Trait Implementations§
Source§impl Clone for Trajectory
impl Clone for Trajectory
Source§fn clone(&self) -> Trajectory
fn clone(&self) -> Trajectory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Trajectory
impl Debug for Trajectory
Source§impl Default for Trajectory
impl Default for Trajectory
Source§fn default() -> Trajectory
fn default() -> Trajectory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Trajectory
impl !RefUnwindSafe for Trajectory
impl Send for Trajectory
impl Sync for Trajectory
impl Unpin for Trajectory
impl UnsafeUnpin for Trajectory
impl !UnwindSafe for Trajectory
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
Mutably borrows from an owned value. Read more