mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 13:55:10 +00:00
vector are now proper struct, including conversion functions
This commit is contained in:
28
lib/Ray/sources/Vector/Vector3.cpp
Normal file
28
lib/Ray/sources/Vector/Vector3.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user