pub struct TwistAngle(/* private fields */);Expand description
Moiré Twist Angle ($θ$).
Units: Radians.
Implementations§
Source§impl TwistAngle
impl TwistAngle
pub fn new(val: f64) -> Result<Self, PhysicsError>
pub fn value(&self) -> f64
pub fn as_degrees(&self) -> f64
pub fn from_degrees(deg: f64) -> Self
Trait Implementations§
Source§impl Clone for TwistAngle
impl Clone for TwistAngle
Source§fn clone(&self) -> TwistAngle
fn clone(&self) -> TwistAngle
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 TwistAngle
impl Debug for TwistAngle
Source§impl Default for TwistAngle
impl Default for TwistAngle
Source§fn default() -> TwistAngle
fn default() -> TwistAngle
Returns the “default value” for a type. Read more
Source§impl From<TwistAngle> for f64
impl From<TwistAngle> for f64
Source§fn from(val: TwistAngle) -> Self
fn from(val: TwistAngle) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TwistAngle
impl PartialEq for TwistAngle
Source§impl PartialOrd for TwistAngle
impl PartialOrd for TwistAngle
impl Copy for TwistAngle
impl StructuralPartialEq for TwistAngle
Auto Trait Implementations§
impl Freeze for TwistAngle
impl RefUnwindSafe for TwistAngle
impl Send for TwistAngle
impl Sync for TwistAngle
impl Unpin for TwistAngle
impl UnwindSafe for TwistAngle
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