Add Block widget

This commit is contained in:
Joscha 2024-03-09 00:52:14 +01:00
parent e31eea8178
commit 2c8f9685b9
7 changed files with 131 additions and 6 deletions

View file

@ -32,6 +32,14 @@ impl Vec2 {
(x, y)
}
pub fn with_x(self, x: i32) -> Self {
Self { x, ..self }
}
pub fn with_y(self, y: i32) -> Self {
Self { y, ..self }
}
/// The vector pointing from `self` to `other`.
///
/// ```