pub struct Transform { /* private fields */ }Expand description
Wraps the corresponding Model I/O transform counterpart.
Implementations§
Source§impl Transform
impl Transform
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O transform counterpart.
Sourcepub fn from_component(component: &TransformComponent) -> Result<Self>
pub fn from_component(component: &TransformComponent) -> Result<Self>
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn from_component_with_resets_transform(
component: &TransformComponent,
resets_transform: bool,
) -> Result<Self>
pub fn from_component_with_resets_transform( component: &TransformComponent, resets_transform: bool, ) -> Result<Self>
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn from_matrix(matrix: [f32; 16]) -> Result<Self>
pub fn from_matrix(matrix: [f32; 16]) -> Result<Self>
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn from_matrix_with_resets_transform(
matrix: [f32; 16],
resets_transform: bool,
) -> Result<Self>
pub fn from_matrix_with_resets_transform( matrix: [f32; 16], resets_transform: bool, ) -> Result<Self>
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn matrix(&self) -> [f32; 16]
pub fn matrix(&self) -> [f32; 16]
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_matrix(&self, matrix: [f32; 16])
pub fn set_matrix(&self, matrix: [f32; 16])
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn resets_transform(&self) -> bool
pub fn resets_transform(&self) -> bool
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_resets_transform(&self, resets_transform: bool)
pub fn set_resets_transform(&self, resets_transform: bool)
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn minimum_time(&self) -> f64
pub fn minimum_time(&self) -> f64
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn maximum_time(&self) -> f64
pub fn maximum_time(&self) -> f64
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn key_times(&self) -> Vec<f64>
pub fn key_times(&self) -> Vec<f64>
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn local_transform_at_time(&self, time: f64) -> [f32; 16]
pub fn local_transform_at_time(&self, time: f64) -> [f32; 16]
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_identity(&self)
pub fn set_identity(&self)
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn translation_at_time(&self, time: f64) -> [f32; 3]
pub fn translation_at_time(&self, time: f64) -> [f32; 3]
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn rotation_at_time(&self, time: f64) -> [f32; 3]
pub fn rotation_at_time(&self, time: f64) -> [f32; 3]
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn shear_at_time(&self, time: f64) -> [f32; 3]
pub fn shear_at_time(&self, time: f64) -> [f32; 3]
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn scale_at_time(&self, time: f64) -> [f32; 3]
pub fn scale_at_time(&self, time: f64) -> [f32; 3]
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_matrix_for_time(&self, matrix: [f32; 16], time: f64)
pub fn set_matrix_for_time(&self, matrix: [f32; 16], time: f64)
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_translation_for_time(&self, translation: [f32; 3], time: f64)
pub fn set_translation_for_time(&self, translation: [f32; 3], time: f64)
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_rotation_for_time(&self, rotation: [f32; 3], time: f64)
pub fn set_rotation_for_time(&self, rotation: [f32; 3], time: f64)
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_shear_for_time(&self, shear: [f32; 3], time: f64)
pub fn set_shear_for_time(&self, shear: [f32; 3], time: f64)
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_scale_for_time(&self, scale: [f32; 3], time: f64)
pub fn set_scale_for_time(&self, scale: [f32; 3], time: f64)
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn rotation_matrix_at_time(&self, time: f64) -> [f32; 16]
pub fn rotation_matrix_at_time(&self, time: f64) -> [f32; 16]
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn translation(&self) -> [f32; 3]
pub fn translation(&self) -> [f32; 3]
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_translation(&self, translation: [f32; 3])
pub fn set_translation(&self, translation: [f32; 3])
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn rotation(&self) -> [f32; 3]
pub fn rotation(&self) -> [f32; 3]
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_rotation(&self, rotation: [f32; 3])
pub fn set_rotation(&self, rotation: [f32; 3])
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn shear(&self) -> [f32; 3]
pub fn shear(&self) -> [f32; 3]
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_shear(&self, shear: [f32; 3])
pub fn set_shear(&self, shear: [f32; 3])
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn scale(&self) -> [f32; 3]
pub fn scale(&self) -> [f32; 3]
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn set_scale(&self, scale: [f32; 3])
pub fn set_scale(&self, scale: [f32; 3])
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.
Sourcepub fn as_transform_component(&self) -> TransformComponent
pub fn as_transform_component(&self) -> TransformComponent
Calls the corresponding Model I/O method on the wrapped Model I/O transform counterpart.