#[repr(transparent)]pub struct RotationVector<T> {
pub v: Vec3<T>,
}Expand description
Rotation vector.
A 3D rotation represented as an axis-angle vector. The direction is the rotation axis, and the length is the angle in radians.
Fields§
§v: Vec3<T>Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for RotationVector<T>
impl<T: Clone> Clone for RotationVector<T>
Source§fn clone(&self) -> RotationVector<T>
fn clone(&self) -> RotationVector<T>
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<T: Debug> Debug for RotationVector<T>
impl<T: Debug> Debug for RotationVector<T>
Source§impl<T: Default> Default for RotationVector<T>
impl<T: Default> Default for RotationVector<T>
Source§fn default() -> RotationVector<T>
fn default() -> RotationVector<T>
Returns the “default value” for a type. Read more
Source§impl<T: Float> From<RotationVector<T>> for (Vec3<T>, Angle<T>)
impl<T: Float> From<RotationVector<T>> for (Vec3<T>, Angle<T>)
Source§fn from(rotvec: RotationVector<T>) -> Self
fn from(rotvec: RotationVector<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Hash> Hash for RotationVector<T>
impl<T: Hash> Hash for RotationVector<T>
Source§impl<T: PartialEq> PartialEq for RotationVector<T>
impl<T: PartialEq> PartialEq for RotationVector<T>
impl<T: Copy> Copy for RotationVector<T>
impl<T> StructuralPartialEq for RotationVector<T>
Auto Trait Implementations§
impl<T> Freeze for RotationVector<T>where
T: Freeze,
impl<T> RefUnwindSafe for RotationVector<T>where
T: RefUnwindSafe,
impl<T> Send for RotationVector<T>where
T: Send,
impl<T> Sync for RotationVector<T>where
T: Sync,
impl<T> Unpin for RotationVector<T>where
T: Unpin,
impl<T> UnsafeUnpin for RotationVector<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RotationVector<T>where
T: UnwindSafe,
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