pub struct Rotor2 {
pub a: f32,
pub b: f32,
}Expand description
Unit complex number a + b·e1e2 with a = cos(θ/2), b = sin(θ/2).
Fields§
§a: f32§b: f32Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rotor2
impl<'de> Deserialize<'de> for Rotor2
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Rotor2
impl StructuralPartialEq for Rotor2
Auto Trait Implementations§
impl Freeze for Rotor2
impl RefUnwindSafe for Rotor2
impl Send for Rotor2
impl Sync for Rotor2
impl Unpin for Rotor2
impl UnsafeUnpin for Rotor2
impl UnwindSafe for Rotor2
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