mirror of
https://github.com/griffi-gh/hUI.git
synced 2025-04-08 08:56:27 -05:00
add sum_vec function
This commit is contained in:
parent
4c93d0bb95
commit
32d4df8b84
|
@ -66,6 +66,10 @@ macro_rules! impl_sides_glam_fns {
|
|||
pub fn bottom_right(&self) -> $glam_type {
|
||||
<$glam_type>::new(self.right, self.bottom)
|
||||
}
|
||||
|
||||
pub fn sum_vec(&self) -> $glam_type {
|
||||
<$glam_type>::new(self.left + self.right, self.top + self.bottom)
|
||||
}
|
||||
}
|
||||
)*
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue