bone getters part 2.5
This commit is contained in:
parent
cc92dda41a
commit
af653e8b67
5 changed files with 197 additions and 31 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue