pub struct TransformComponent { /* private fields */ }Expand description
Wraps the corresponding Model I/O transform component counterpart.
Implementations§
Source§impl TransformComponent
impl TransformComponent
Sourcepub fn new<F>(callback: F) -> Result<Self>
pub fn new<F>(callback: F) -> Result<Self>
Wraps a Rust callback as the corresponding Model I/O transform component protocol 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 component 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 component 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 component 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 component 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 component 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 component 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 component 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 component counterpart.
Sourcepub fn as_transform(&self) -> Option<Transform>
pub fn as_transform(&self) -> Option<Transform>
Calls the corresponding Model I/O method on the wrapped Model I/O transform component counterpart.
Sourcepub fn as_transform_stack(&self) -> Option<TransformStack>
pub fn as_transform_stack(&self) -> Option<TransformStack>
Calls the corresponding Model I/O method on the wrapped Model I/O transform component counterpart.
Trait Implementations§
Source§impl Clone for TransformComponent
impl Clone for TransformComponent
Source§fn clone(&self) -> TransformComponent
fn clone(&self) -> TransformComponent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more