Struct forte_engine::math::transforms::Transform
source · pub struct Transform {
pub position: Vector3<f32>,
pub rotation: Quaternion<f32>,
pub scale: Vector3<f32>,
}Expand description
A representation of a transform using a vector3 position, and scale, and a quaternion rotation.
Fields§
§position: Vector3<f32>The position of the transform.
rotation: Quaternion<f32>The rotation of the transform.
scale: Vector3<f32>The scale of the transform.
Implementations§
Trait Implementations§
impl Copy for Transform
Auto Trait Implementations§
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
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