Draft float widget and simplify image again 🎉

This commit is contained in:
Héctor Ramón Jiménez 2025-04-29 22:31:58 +02:00
parent 8ba993adad
commit fae95d6095
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
29 changed files with 463 additions and 305 deletions

View file

@ -40,6 +40,11 @@ impl Transformation {
pub fn translation(&self) -> Vector {
Vector::new(self.0.w_axis.x, self.0.w_axis.y)
}
/// Returns the inverse of the [`Transformation`].
pub fn inverse(self) -> Self {
Transformation(self.0.inverse())
}
}
impl Default for Transformation {