pub struct Transform { /* private fields */ }Implementations§
Source§impl Transform
impl Transform
pub fn new() -> Result<Self>
pub fn from_component(component: &TransformComponent) -> Result<Self>
pub fn from_component_with_resets_transform( component: &TransformComponent, resets_transform: bool, ) -> Result<Self>
pub fn from_matrix(matrix: [f32; 16]) -> Result<Self>
pub fn from_matrix_with_resets_transform( matrix: [f32; 16], resets_transform: bool, ) -> Result<Self>
pub fn matrix(&self) -> [f32; 16]
pub fn set_matrix(&self, matrix: [f32; 16])
pub fn resets_transform(&self) -> bool
pub fn set_resets_transform(&self, resets_transform: bool)
pub fn minimum_time(&self) -> f64
pub fn maximum_time(&self) -> f64
pub fn key_times(&self) -> Vec<f64>
pub fn local_transform_at_time(&self, time: f64) -> [f32; 16]
pub fn set_identity(&self)
pub fn translation_at_time(&self, time: f64) -> [f32; 3]
pub fn rotation_at_time(&self, time: f64) -> [f32; 3]
pub fn shear_at_time(&self, time: f64) -> [f32; 3]
pub fn scale_at_time(&self, time: f64) -> [f32; 3]
pub fn set_matrix_for_time(&self, matrix: [f32; 16], time: f64)
pub fn set_translation_for_time(&self, translation: [f32; 3], time: f64)
pub fn set_rotation_for_time(&self, rotation: [f32; 3], time: f64)
pub fn set_shear_for_time(&self, shear: [f32; 3], time: f64)
pub fn set_scale_for_time(&self, scale: [f32; 3], time: f64)
pub fn rotation_matrix_at_time(&self, time: f64) -> [f32; 16]
pub fn translation(&self) -> [f32; 3]
pub fn set_translation(&self, translation: [f32; 3])
pub fn rotation(&self) -> [f32; 3]
pub fn set_rotation(&self, rotation: [f32; 3])
pub fn shear(&self) -> [f32; 3]
pub fn set_shear(&self, shear: [f32; 3])
pub fn scale(&self) -> [f32; 3]
pub fn set_scale(&self, scale: [f32; 3])
pub fn as_transform_component(&self) -> TransformComponent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl !Send for Transform
impl !Sync for Transform
impl Unpin for Transform
impl UnsafeUnpin 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