mirror of
https://github.com/Mr-X-GTA/GTAV-Classes-1.git
synced 2024-12-22 22:47:32 +08:00
30 lines
469 B
C++
30 lines
469 B
C++
#pragma once
|
|
|
|
namespace rage
|
|
{
|
|
template<typename T>
|
|
union vector2
|
|
{
|
|
T data[2];
|
|
struct { T x, y; };
|
|
};
|
|
|
|
template<typename T>
|
|
union vector3
|
|
{
|
|
T data[3];
|
|
struct { T x, y, z; };
|
|
};
|
|
|
|
template<typename T>
|
|
union vector4
|
|
{
|
|
T data[4];
|
|
struct { T x, y, z, w; };
|
|
};
|
|
|
|
typedef vector2<float> fvector2;
|
|
typedef vector3<float> fvector3;
|
|
typedef vector4<float> fvector4;
|
|
}
|