diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-12 10:37:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 10:37:23 +0200 |
commit | 5bd0ff003fdd82cf84a557251633ebb83bad4fd5 (patch) | |
tree | 248dc6dfca0e27c3b03533b45753a16d186d2811 /core/math/vector3.h | |
parent | cc71012266f880dcf3b37e40d5f90d9ce8b7a432 (diff) | |
parent | 277b24dfb7acdb42589b931252bbe7be81c7536e (diff) |
Merge pull request #21978 from akien-mga/include-core-absolute
Make core/ includes absolute, remove subfolders from include path
Diffstat (limited to 'core/math/vector3.h')
-rw-r--r-- | core/math/vector3.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/core/math/vector3.h b/core/math/vector3.h index 5f0e8919ff..5302832eeb 100644 --- a/core/math/vector3.h +++ b/core/math/vector3.h @@ -31,10 +31,10 @@ #ifndef VECTOR3_H #define VECTOR3_H -#include "math_defs.h" -#include "math_funcs.h" -#include "typedefs.h" -#include "ustring.h" +#include "core/math/math_defs.h" +#include "core/math/math_funcs.h" +#include "core/typedefs.h" +#include "core/ustring.h" class Basis; @@ -150,13 +150,8 @@ struct Vector3 { } }; -#ifdef VECTOR3_IMPL_OVERRIDE - -#include "vector3_inline.h" - -#else - -#include "matrix3.h" +// Should be included after class definition, otherwise we get circular refs +#include "core/math/matrix3.h" Vector3 Vector3::cross(const Vector3 &p_b) const { @@ -451,6 +446,4 @@ Vector3 Vector3::reflect(const Vector3 &p_normal) const { return 2.0 * p_normal * this->dot(p_normal) - *this; } -#endif - #endif // VECTOR3_H |