Add Block widget
This commit is contained in:
parent
e31eea8178
commit
2c8f9685b9
7 changed files with 131 additions and 6 deletions
|
|
@ -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`.
|
||||
///
|
||||
/// ```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue