mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
angle calc
This commit is contained in:
@@ -116,6 +116,11 @@ public:
|
||||
return std::sqrt(lengthSquared());
|
||||
}
|
||||
|
||||
double angle() const
|
||||
{
|
||||
return std::atan2(y, x) * 180.0 / M_PI;
|
||||
}
|
||||
|
||||
template <typename Handler>
|
||||
void serialize(Handler &h, const int version)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user