Core: Use forward declares for Vector3/Vector3i
Add add Vector3 operator in Vector3i.
This commit is contained in:
parent
6a51999b7f
commit
e031aa06ee
9 changed files with 57 additions and 38 deletions
|
|
@ -32,8 +32,9 @@
|
|||
#define VECTOR3I_H
|
||||
|
||||
#include "core/math/math_funcs.h"
|
||||
#include "core/string/ustring.h"
|
||||
#include "core/typedefs.h"
|
||||
|
||||
class String;
|
||||
struct Vector3;
|
||||
|
||||
struct _NO_DISCARD_ Vector3i {
|
||||
enum Axis {
|
||||
|
|
@ -105,6 +106,7 @@ struct _NO_DISCARD_ Vector3i {
|
|||
_FORCE_INLINE_ bool operator>=(const Vector3i &p_v) const;
|
||||
|
||||
operator String() const;
|
||||
operator Vector3() const;
|
||||
|
||||
_FORCE_INLINE_ Vector3i() {}
|
||||
_FORCE_INLINE_ Vector3i(const int32_t p_x, const int32_t p_y, const int32_t p_z) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue