pub struct Transform {
pub translation: Option<Vector3<f32>>,
pub rotation: Option<Quaternion>,
pub scale: Option<Vector3<f32>>,
}Expand description
Fields§
§translation: Option<Vector3<f32>>§rotation: Option<Quaternion>§scale: Option<Vector3<f32>>Implementations§
Source§impl Transform
impl Transform
pub const fn none() -> Self
pub const fn identity() -> Self
pub fn from_translation(translation: impl Into<Vector3<f32>>) -> Self
pub fn from_rotation(rotation: impl Into<Quaternion>) -> Self
pub fn from_scale(scale: impl Into<Vector3<f32>>) -> Self
pub fn from_translation_rotation( translation: impl Into<Vector3<f32>>, rotation: impl Into<Quaternion>, ) -> Self
pub fn from_rotation_scale( rotation: impl Into<Quaternion>, scale: impl Into<Vector3<f32>>, ) -> Self
pub fn from_translation_scale( translation: impl Into<Vector3<f32>>, scale: impl Into<Vector3<f32>>, ) -> Self
pub fn from_translation_rotation_scale( translation: impl Into<Vector3<f32>>, rotation: impl Into<Quaternion>, scale: impl Into<Vector3<f32>>, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Transform
impl<'de> Deserialize<'de> for Transform
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl Freeze for Transform
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