Struct DihedralAngle
pub struct DihedralAngle { /* private fields */ }Expand description
A dihedral angle stored as an Angle.
Implementations§
§impl DihedralAngle
impl DihedralAngle
pub const fn new(angle: Angle) -> DihedralAngle
pub const fn new(angle: Angle) -> DihedralAngle
Creates a dihedral angle from an existing angle.
pub const fn from_radians(radians: f64) -> DihedralAngle
pub const fn from_radians(radians: f64) -> DihedralAngle
Creates a dihedral angle from radians.
pub fn from_degrees(degrees: f64) -> DihedralAngle
pub fn from_degrees(degrees: f64) -> DihedralAngle
Creates a dihedral angle from degrees.
pub fn normalized(self) -> DihedralAngle
pub fn normalized(self) -> DihedralAngle
Returns the equivalent dihedral angle in [0, 2pi).
Trait Implementations§
§impl Clone for DihedralAngle
impl Clone for DihedralAngle
§fn clone(&self) -> DihedralAngle
fn clone(&self) -> DihedralAngle
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 more§impl Debug for DihedralAngle
impl Debug for DihedralAngle
§impl PartialEq for DihedralAngle
impl PartialEq for DihedralAngle
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