Draft float widget and simplify image again 🎉
This commit is contained in:
parent
8ba993adad
commit
fae95d6095
29 changed files with 463 additions and 305 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue