diff options
author | aap <aap@papnet.eu> | 2021-02-01 10:57:55 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-02-01 10:57:55 +0100 |
commit | 3f60034c391fd5da66639e4a29f121f18ead6255 (patch) | |
tree | f7d5c6b8ac6c7fba1a7a499c600ea551653f6f23 /src/math/Vector.h | |
parent | fix realloc (diff) | |
download | re3-3f60034c391fd5da66639e4a29f121f18ead6255.tar re3-3f60034c391fd5da66639e4a29f121f18ead6255.tar.gz re3-3f60034c391fd5da66639e4a29f121f18ead6255.tar.bz2 re3-3f60034c391fd5da66639e4a29f121f18ead6255.tar.lz re3-3f60034c391fd5da66639e4a29f121f18ead6255.tar.xz re3-3f60034c391fd5da66639e4a29f121f18ead6255.tar.zst re3-3f60034c391fd5da66639e4a29f121f18ead6255.zip |
Diffstat (limited to 'src/math/Vector.h')
-rw-r--r-- | src/math/Vector.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/math/Vector.h b/src/math/Vector.h index 02128454..87895806 100644 --- a/src/math/Vector.h +++ b/src/math/Vector.h @@ -1,8 +1,12 @@ #pragma once +// TODO(LCS): this should have 16 byte alignment but VS doesn't like passing aligned values by value +// need a solution for this eventually if we ever want to load original assets class CVector : public RwV3d { public: + float w; + CVector(void) {} CVector(float x, float y, float z) { @@ -126,4 +130,7 @@ class CMatrix; CVector Multiply3x3(const CMatrix &mat, const CVector &vec); CVector Multiply3x3(const CVector &vec, const CMatrix &mat); -CVector operator*(const CMatrix &mat, const CVector &vec);
\ No newline at end of file +CVector operator*(const CMatrix &mat, const CVector &vec); + +// we need this because CVector and RwV3d have different size now +void RwV3dTransformPoints(CVector * pointsOut, const CVector * pointsIn, RwInt32 numPoints, const RwMatrix * matrix); |