pub struct DihedralAngle { /* private fields */ }Expand description
A dihedral angle stored as an Angle.
Implementations§
Source§impl DihedralAngle
impl DihedralAngle
Sourcepub const fn new(angle: Angle) -> DihedralAngle
pub const fn new(angle: Angle) -> DihedralAngle
Creates a dihedral angle from an existing angle.
Sourcepub const fn from_radians(radians: f64) -> DihedralAngle
pub const fn from_radians(radians: f64) -> DihedralAngle
Creates a dihedral angle from radians.
Sourcepub fn from_degrees(degrees: f64) -> DihedralAngle
pub fn from_degrees(degrees: f64) -> DihedralAngle
Creates a dihedral angle from degrees.
Sourcepub fn normalized(self) -> DihedralAngle
pub fn normalized(self) -> DihedralAngle
Returns the equivalent dihedral angle in [0, 2pi).
Trait Implementations§
Source§impl Clone for DihedralAngle
impl Clone for DihedralAngle
Source§fn clone(&self) -> DihedralAngle
fn clone(&self) -> DihedralAngle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DihedralAngle
impl Debug for DihedralAngle
Source§impl PartialEq for DihedralAngle
impl PartialEq for DihedralAngle
Source§fn eq(&self, other: &DihedralAngle) -> bool
fn eq(&self, other: &DihedralAngle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DihedralAngle
impl StructuralPartialEq for DihedralAngle
Auto Trait Implementations§
impl Freeze for DihedralAngle
impl RefUnwindSafe for DihedralAngle
impl Send for DihedralAngle
impl Sync for DihedralAngle
impl Unpin for DihedralAngle
impl UnsafeUnpin for DihedralAngle
impl UnwindSafe for DihedralAngle
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