mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
refs #484 Trigonometry methods in CAngle.
This commit is contained in:
@@ -31,5 +31,20 @@ namespace BlackMisc
|
||||
{
|
||||
return BlackMisc::Math::CMathUtils::PI();
|
||||
}
|
||||
|
||||
double CAngle::sin() const
|
||||
{
|
||||
return std::sin(this->value(CAngleUnit::rad()));
|
||||
}
|
||||
|
||||
double CAngle::cos() const
|
||||
{
|
||||
return std::cos(this->value(CAngleUnit::rad()));
|
||||
}
|
||||
|
||||
double CAngle::tan() const
|
||||
{
|
||||
return std::tan(this->value(CAngleUnit::rad()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user