diff options
Diffstat (limited to 'src/variant/vector3i.cpp')
-rw-r--r-- | src/variant/vector3i.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/variant/vector3i.cpp b/src/variant/vector3i.cpp index 67c0bc5..0849762 100644 --- a/src/variant/vector3i.cpp +++ b/src/variant/vector3i.cpp @@ -28,9 +28,11 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ +#include <godot_cpp/variant/vector3i.hpp> + #include <godot_cpp/core/error_macros.hpp> #include <godot_cpp/variant/string.hpp> -#include <godot_cpp/variant/vector3i.hpp> +#include <godot_cpp/variant/vector3.hpp> namespace godot { @@ -56,4 +58,8 @@ Vector3i::operator String() const { return (String::num(x, 0) + ", " + String::num(y, 0) + ", " + String::num(z, 5)); } +Vector3i::operator Vector3() const { + return Vector3((real_t)x, (real_t)y, (real_t)z); +} + } // namespace godot |