aboutsummaryrefslogtreecommitdiff
path: root/src/transformable.rs
blob: c181bd69f9c6e60fde67260598dbff8420dc91cd (plain) (blame)
1
2
3
4
5
6
7
8
use nalgebra::Matrix3;

/// Trait for things that can be stretched and rotated etc. as one pleases without
/// becoming invalid. A room for instance would fall into this category, while an icon might not.
pub trait NonRigidTransformable {
    /// Applies the provided matrix to all vertices of this transformable element.
    fn apply_matrix(&mut self, matrix: &Matrix3<f64>);
}