Skip to main content

Transformable

Trait Transformable 

Source
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§

Source

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

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.

Implementors§