pub struct PeriodicImage {
pub displacement: [f32; 3],
pub lattice_shift: [i64; 3],
}Expand description
A shortest displacement on a periodic flat torus and the chosen image.
Fields§
§displacement: [f32; 3]Cartesian displacement from the left point to the chosen right image.
lattice_shift: [i64; 3]Lattice translation subtracted from the un-wrapped right point.
Trait Implementations§
Source§impl Clone for PeriodicImage
impl Clone for PeriodicImage
impl Copy for PeriodicImage
Source§impl Debug for PeriodicImage
impl Debug for PeriodicImage
Source§impl PartialEq for PeriodicImage
impl PartialEq for PeriodicImage
impl StructuralPartialEq for PeriodicImage
Auto Trait Implementations§
impl Freeze for PeriodicImage
impl RefUnwindSafe for PeriodicImage
impl Send for PeriodicImage
impl Sync for PeriodicImage
impl Unpin for PeriodicImage
impl UnsafeUnpin for PeriodicImage
impl UnwindSafe for PeriodicImage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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