vector are now proper struct, including conversion functions

This commit is contained in:
arthur.jamet
2021-05-22 00:43:31 +02:00
parent d1d994fd29
commit f0c10aade6
24 changed files with 191 additions and 55 deletions

View File

@@ -0,0 +1,27 @@
/*
** EPITECH PROJECT, 2021
** Bomberman
** File description:
** Vector2
*/
#include "Vector/Vector2.hpp"
RAY::Vector2::Vector2(float X, float Y):
x(X), y(Y)
{
}
RAY::Vector2::Vector2():
x(0), y(0)
{
}
RAY::Vector2::operator ::Vector2() const
{
::Vector2 v;
v.x = this->x;
v.y = this->y;
return v;
}