bone getters part 2.5

This commit is contained in:
Ricardo Luís Vaz Silva 2025-05-22 21:04:21 -03:00 committed by Magnus Norddahl
commit af653e8b67
5 changed files with 197 additions and 31 deletions

View file

@ -1299,6 +1299,21 @@ public:
return TAngle(double(rad * (180.0 / pi::pi())));
}
static constexpr TAngle fromCos(double cos)
{
return fromRad(g_acos(cos));
}
static constexpr TAngle fromSin(double sin)
{
return fromRad(g_asin(sin));
}
static constexpr TAngle fromTan(double tan)
{
return fromRad(g_atan(tan));
}
static constexpr TAngle fromBam(int f)
{
return TAngle(f * (90. / 0x40000000));