feat: border angle animations (#1469)
Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com>
This commit is contained in:
parent
1a41f729a3
commit
32d56fec97
11 changed files with 77 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue