1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Add rect field to InteractInfo struct

This commit is contained in:
Emil Ernerfeldt
2019-01-14 14:26:02 +01:00
parent 6e8cc8439b
commit 3f84836c20
7 changed files with 73 additions and 89 deletions

View File

@@ -128,6 +128,10 @@ impl Rect {
pub fn max(&self) -> Vec2 {
self.pos + self.size
}
pub fn size(&self) -> Vec2 {
self.size
}
}
pub fn lerp(min: f32, max: f32, t: f32) -> f32 {