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,28 @@
/*
** EPITECH PROJECT, 2021
** Bomberman
** File description:
** Vector3
*/
#include "Vector/Vector3.hpp"
RAY::Vector3::Vector3(float X, float Y, float Z):
Vector2(X, Y), z(Z)
{
}
RAY::Vector3::Vector3():
Vector2(0, 0), z(0)
{
}
RAY::Vector3::operator ::Vector3() const
{
::Vector3 v;
v.x = this->x;
v.y = this->y;
v.z = this->z;
return v;
}