pub struct AmberBox {
pub a: f64,
pub b: f64,
pub c: f64,
pub alpha: f64,
pub beta: f64,
pub gamma: f64,
}Expand description
Periodic box dimensions for AMBER simulations.
Fields§
§a: f64Box length in X direction (Å).
b: f64Box length in Y direction (Å).
c: f64Box length in Z direction (Å).
alpha: f64Box angle alpha (degrees).
beta: f64Box angle beta (degrees).
gamma: f64Box angle gamma (degrees).
Implementations§
Source§impl AmberBox
impl AmberBox
Sourcepub fn orthorhombic(a: f64, b: f64, c: f64) -> Self
pub fn orthorhombic(a: f64, b: f64, c: f64) -> Self
Create an orthorhombic box.
Sourcepub fn is_orthorhombic(&self) -> bool
pub fn is_orthorhombic(&self) -> bool
Whether the box is orthorhombic (all angles 90°).
Sourcepub fn in_angstrom(&self) -> Self
pub fn in_angstrom(&self) -> Self
Convert box dimensions to Å (already in Å, returns same object).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AmberBox
impl RefUnwindSafe for AmberBox
impl Send for AmberBox
impl Sync for AmberBox
impl Unpin for AmberBox
impl UnsafeUnpin for AmberBox
impl UnwindSafe for AmberBox
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.