mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-02 13:11:55 -07:00
feat: border angle animations (#1469)
Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com>
This commit is contained in:
@@ -518,3 +518,19 @@ int64_t configStringToInt(const std::string& VALUE) {
|
||||
}
|
||||
return std::stoll(VALUE);
|
||||
}
|
||||
|
||||
double normalizeAngleRad(double ang) {
|
||||
if (ang > M_PI * 2) {
|
||||
while (ang > M_PI * 2)
|
||||
ang -= M_PI * 2;
|
||||
return ang;
|
||||
}
|
||||
|
||||
if (ang < 0.0) {
|
||||
while (ang < 0.0)
|
||||
ang += M_PI * 2;
|
||||
return ang;
|
||||
}
|
||||
|
||||
return ang;
|
||||
}
|
Reference in New Issue
Block a user