pub struct Rotor4 {
pub s: f32,
pub xy: f32,
pub xz: f32,
pub xw: f32,
pub yz: f32,
pub yw: f32,
pub zw: f32,
pub xyzw: f32,
}Fields§
§s: f32§xy: f32§xz: f32§xw: f32§yz: f32§yw: f32§zw: f32§xyzw: f32Implementations§
Source§impl Rotor4
impl Rotor4
pub const IDENTITY: Self
Sourcepub const IDENTITY_SLOT: [f32; 8]
pub const IDENTITY_SLOT: [f32; 8]
Rotor4::IDENTITY in the From<Rotor4> for [f32; 8] slot order.
Sourcepub fn from_rotation_arc(from: Vec4, to: Vec4) -> Self
pub fn from_rotation_arc(from: Vec4, to: Vec4) -> Self
Shortest simple rotation between unit vectors; antipodes use the least-aligned coordinate axis.
pub fn norm_squared(self) -> f32
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rotor4
impl<'de> Deserialize<'de> for Rotor4
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Rotor4
impl StructuralPartialEq for Rotor4
Auto Trait Implementations§
impl Freeze for Rotor4
impl RefUnwindSafe for Rotor4
impl Send for Rotor4
impl Sync for Rotor4
impl Unpin for Rotor4
impl UnsafeUnpin for Rotor4
impl UnwindSafe for Rotor4
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