pub struct Rotation { /* private fields */ }Implementations§
Source§impl Rotation
impl Rotation
pub const IDENTITY: Self
pub fn new(m: DMat3) -> Self
pub fn with_derivative(self, dm: DMat3) -> Self
pub fn with_angular_velocity(self, v: DVec3) -> Self
pub fn position_matrix(&self) -> DMat3
pub fn velocity_matrix(&self) -> DMat3
pub fn compose(self, other: Self) -> Self
pub fn transpose(&self) -> Self
pub fn rotate_position(&self, pos: DVec3) -> DVec3
pub fn rotate_velocity(&self, pos: DVec3, vel: DVec3) -> DVec3
pub fn rotate_state(&self, pos: DVec3, vel: DVec3) -> (DVec3, DVec3)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more