diff options
author | aap <aap@papnet.eu> | 2019-07-18 15:41:09 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-18 15:41:09 +0200 |
commit | fd01f9b25cdc3b527a886ee6b9237b01a5475295 (patch) | |
tree | 6db1dbfeb6feedcf79e870f417b82af29da7ca21 /src/math | |
parent | Merge pull request #147 from erorcun/erorcun (diff) | |
download | re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar.gz re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar.bz2 re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar.lz re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar.xz re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar.zst re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.zip |
Diffstat (limited to '')
-rw-r--r-- | src/math/Vector.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/Vector.h b/src/math/Vector.h index de8092eb..f794a57f 100644 --- a/src/math/Vector.h +++ b/src/math/Vector.h @@ -22,6 +22,7 @@ public: return *((RwV3d*)this); } #endif + // (0,1,0) means no rotation. So get right vector and its atan 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; } |