mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
remove tek_proc; add Border
This commit is contained in:
parent
6624fb476c
commit
70cef99931
9 changed files with 103 additions and 81 deletions
|
|
@ -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()]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue