remove tek_proc; add Border

This commit is contained in:
🪞👃🪞 2024-09-13 03:26:59 +03:00
parent 6624fb476c
commit 70cef99931
9 changed files with 103 additions and 81 deletions

View file

@ -22,8 +22,8 @@ pub trait Area<N: Number>: Copy {
fn y (&self) -> N;
fn w (&self) -> N;
fn h (&self) -> N;
fn x2 (&self) -> N { self.x() + self.w() }
fn y2 (&self) -> N { self.y() + self.h() }
fn x2 (&self) -> N { self.x() + self.w() - 1.into() }
fn y2 (&self) -> N { self.y() + self.h() - 1.into() }
fn xywh (&self) -> [N;4] {
[self.x(), self.y(), self.w(), self.h()]
}