diff options
author | 2023-01-30 05:26:51 +0100 | |
---|---|---|
committer | 2023-01-30 05:26:51 +0100 | |
commit | 8c753192f82989fec5b5b506f62a8b17bf41f55a (patch) | |
tree | c53742f5ce8d958e636b15d74a4781fc99e219be /core | |
parent | a28bc3eaf05d59ef35ae5c182fa68478356364fd (diff) | |
parent | a50cc32d09ddff1d061701074908c28d5c5509ba (diff) | |
download | iced-8c753192f82989fec5b5b506f62a8b17bf41f55a.tar.gz iced-8c753192f82989fec5b5b506f62a8b17bf41f55a.tar.bz2 iced-8c753192f82989fec5b5b506f62a8b17bf41f55a.zip |
Merge pull request #1686 from iced-rs/fix/overlay-group-position
Fix layout translation in `overlay::Group`
Diffstat (limited to '')
-rw-r--r-- | core/src/vector.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/vector.rs b/core/src/vector.rs index b550869c..1380c3b3 100644 --- a/core/src/vector.rs +++ b/core/src/vector.rs @@ -15,6 +15,11 @@ impl<T> Vector<T> { } } +impl Vector { + /// The zero [`Vector`]. + pub const ZERO: Self = Self::new(0.0, 0.0); +} + impl<T> std::ops::Add for Vector<T> where T: std::ops::Add<Output = T>, |