1
1
Fork 0
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:
griffi-gh 2025-03-31 13:48:48 +02:00
parent 4c93d0bb95
commit 32d4df8b84

View file

@ -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)
}
}
)*
};