pub struct Transform<H: Handedness> {
pub position: Point3<f32>,
pub rotation: Quaternion<f32>,
pub phantom: PhantomData<H>,
}Expand description
A thin wrapper over a Point3<f32> and a Quaternion<f32>
Fields§
§position: Point3<f32>§rotation: Quaternion<f32>§phantom: PhantomData<H>Implementations§
Source§impl<H: Handedness> Transform<H>
impl<H: Handedness> Transform<H>
pub const IDENTITY: Transform<H>
pub fn from_position_rotation<P, Q>(position: P, rotation: Q) -> Self
pub fn into_position_rotation<P, Q>(self) -> (P, Q)
Trait Implementations§
impl<H: Copy + Handedness> Copy for Transform<H>
Auto Trait Implementations§
impl<H> Freeze for Transform<H>
impl<H> RefUnwindSafe for Transform<H>where
H: RefUnwindSafe,
impl<H> Send for Transform<H>where
H: Send,
impl<H> Sync for Transform<H>where
H: Sync,
impl<H> Unpin for Transform<H>where
H: Unpin,
impl<H> UnwindSafe for Transform<H>where
H: 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