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