pub struct Transform<H: Handedness> {
pub position: Vector3<f32>,
pub rotation: Quaternion<f32>,
pub phantom: PhantomData<H>,
}Fields§
§position: Vector3<f32>§rotation: Quaternion<f32>§phantom: PhantomData<H>Implementations§
Source§impl<H: Handedness> Transform<H>
impl<H: Handedness> Transform<H>
pub fn from_position_rotation( position: Vector3<f32>, rotation: Quaternion<f32>, ) -> Self
pub fn into_position_rotation(self) -> (Vector3<f32>, Quaternion<f32>)
pub fn right(&self) -> Vector3<f32>
pub fn up(&self) -> Vector3<f32>
pub fn forward(&self) -> Vector3<f32>
pub fn identity() -> Transform<H>
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