pub trait Transformable: MeshLike + Representable{
// Required method
fn apply_transform<Trans: Fn(&[f32; 3]) -> [f32; 3]>(
&self,
transform: Trans,
) -> Self::Intermediate;
}Expand description
Requriements to perform a PointwiseTransform or MatrixTransform
Required Methods§
Sourcefn apply_transform<Trans: Fn(&[f32; 3]) -> [f32; 3]>(
&self,
transform: Trans,
) -> Self::Intermediate
fn apply_transform<Trans: Fn(&[f32; 3]) -> [f32; 3]>( &self, transform: Trans, ) -> Self::Intermediate
Applies a transform function to self, and returns a intermediate representation.
The intermediate representation must satisfies
InstanceUpdater: For updating geometry view.Interpolatable: For performing a tweening animation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.