rename z offset to layer offset

This commit is contained in:
2025-11-22 18:45:01 -05:00
parent 9deba3d9d7
commit d757e805e8
3 changed files with 22 additions and 14 deletions

View File

@@ -56,6 +56,16 @@ impl Vec2 {
pub const fn tuple(&self) -> (f32, f32) {
(self.x, self.y)
}
pub const fn with_x(mut self, x: f32) -> Self {
self.x = x;
self
}
pub const fn with_y(mut self, y: f32) -> Self {
self.y = y;
self
}
}
impl<T: const UiNum + Copy> const From<T> for Vec2 {