1 2 3 4 5 6 7 8 9
//! Transformable trait. use crate::math::Trans3; /// Types implementing this trait may be transformed. pub trait Transformable { /// Apply the given transformation. fn transform(&mut self, trans: &Trans3); }
1 2 3 4 5 6 7 8 9
//! Transformable trait. use crate::math::Trans3; /// Types implementing this trait may be transformed. pub trait Transformable { /// Apply the given transformation. fn transform(&mut self, trans: &Trans3); }