Merged with upstream

This commit is contained in:
Nikolay Korolev
2019-06-29 18:05:16 +03:00
20 changed files with 248 additions and 70 deletions

View File

@ -22,6 +22,7 @@ public:
return *((RwV3d*)this);
}
#endif
float Heading(void) const { return atan2(-x, y); }
float Magnitude(void) const { return sqrt(x*x + y*y + z*z); }
float MagnitudeSqr(void) const { return x*x + y*y + z*z; }
float Magnitude2D(void) const { return sqrt(x*x + y*y); }