ModelCompiler/src/PseudoMath.h

46 lines
449 B
C
Raw Normal View History

#pragma once
namespace SH_COMP
{
struct SHVec2
{
float x, y;
};
struct SHVec3
{
float x, y, z;
};
struct SHVec4
{
float x, y, z, w;
};
struct SHVec4i
{
uint32_t x, y, z, w;
};
struct SHMat4
{
float data[16];
bool operator==(SHMat4 const& rhs) const
{
for (auto i {0}; i < 16; ++i)
{
if (data[i] != rhs.data[i])
{
return false;
}
}
return true;
}
};
2023-02-27 00:56:41 +08:00
using IndexType = uint32_t;
}