Temp-Classes/rage/vector.hpp
Aure7138 12919a46ff feat: CPlayerInfo, CVehicle & CPed (#58)
* Added get_position() helper to CNavigation
* Updated CPed class:
  * m_fatigued_health_threshold
  * m_injured_health_threshold
  * m_dying_health_threshold
  * m_hurt_health_threshold
* Updated CPlayerInfo class:
  * m_wanted_level_difficulty
  * m_wanted_level_multiplier
* Updated CVehicle class:
  * m_dirt_level
  * m_max_passengers
  * m_num_of_passengers
  * m_door_lock_status
2022-11-08 21:02:11 +00:00

46 lines
811 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; };
};
template<typename T>
union matrix34
{
T data[3][4];
struct { struct {T x, y, z, w; } rows[3];};
};
template<typename T>
union matrix44
{
T data[4][4];
struct { struct {T x, y, z, w; } rows[4];};
};
typedef vector2<float> fvector2;
typedef vector3<float> fvector3;
typedef vector4<float> fvector4;
typedef matrix34<float> fmatrix34;
typedef matrix44<float> fmatrix44;
}