mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-20 19:57:53 -05:00
Add generic XModel Export dumper without bone support yet
This commit is contained in:
40
src/Utils/Math/Vector.h
Normal file
40
src/Utils/Math/Vector.h
Normal file
@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
|
||||
template<typename T>
|
||||
class Vector3
|
||||
{
|
||||
public:
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
T m_x;
|
||||
T m_y;
|
||||
T m_z;
|
||||
};
|
||||
T m_data[3];
|
||||
} u;
|
||||
};
|
||||
|
||||
typedef Vector3<float> Vector3f;
|
||||
typedef Vector3<double> Vector3d;
|
||||
|
||||
template<typename T>
|
||||
class Vector4
|
||||
{
|
||||
public:
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
T m_x;
|
||||
T m_y;
|
||||
T m_z;
|
||||
T m_w;
|
||||
};
|
||||
T m_data[4];
|
||||
} u;
|
||||
};
|
||||
|
||||
typedef Vector3<float> Vector4f;
|
||||
typedef Vector3<double> Vector4d;
|
Reference in New Issue
Block a user