GTAV-Classes/rage/vector.hpp

30 lines
469 B
C++
Raw Normal View History

2022-01-28 01:15:26 +01:00
#pragma once
namespace rage
{
template<typename T>
union vector2
{
T data[2];
struct { T x, y; };
};
2022-01-28 01:15:26 +01:00
template<typename T>
union vector3
{
T data[3];
2022-01-29 21:33:18 +01:00
struct { T x, y, z; };
2022-01-28 01:15:26 +01:00
};
template<typename T>
union vector4
{
T data[4];
struct { T x, y, z, w; };
};
typedef vector2<float> fvector2;
2022-01-28 01:15:26 +01:00
typedef vector3<float> fvector3;
typedef vector4<float> fvector4;
2022-01-28 01:15:26 +01:00
}