mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 05:45:10 +00:00
27 lines
310 B
C++
27 lines
310 B
C++
/*
|
|
** 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;
|
|
} |