miscellaneous, mostly world related

This commit is contained in:
aap
2019-06-29 11:09:33 +02:00
parent f2d1ceb043
commit b2f8c7eb23
20 changed files with 244 additions and 69 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); }