miscellaneous, mostly world related

This commit is contained in:
aap committed 2019-06-29 11:09:33 +02:00
1 parent f2d1ceb043
commit b2f8c7eb23
20 files changed
+244 -69

No files matched your search

+1
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); }