This commit is contained in:
IlyaShurupov 2024-06-23 17:57:14 +03:00
parent 378ff3f568
commit 05ac11b24c
7 changed files with 151 additions and 51 deletions

View file

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