awidgets
This commit is contained in:
parent
378ff3f568
commit
05ac11b24c
7 changed files with 151 additions and 51 deletions
|
|
@ -374,8 +374,8 @@ namespace tp {
|
|||
}
|
||||
|
||||
void clamp(const Vec& min, const Vec& max) {
|
||||
tp::clamp(x, min.x, max.x);
|
||||
tp::clamp(y, min.y, max.y);
|
||||
x = tp::clamp(x, min.x, max.x);
|
||||
y = tp::clamp(y, min.y, max.y);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue