2022-11-16 10:41:27 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace SH_COMP
|
|
|
|
{
|
|
|
|
|
|
|
|
struct SHVec2
|
|
|
|
{
|
|
|
|
float x, y;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SHVec3
|
|
|
|
{
|
|
|
|
float x, y, z;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SHVec4
|
|
|
|
{
|
|
|
|
float x, y, z, w;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SHMat4
|
|
|
|
{
|
|
|
|
float data[16];
|
2023-01-22 21:47:19 +08:00
|
|
|
|
|
|
|
bool operator==(SHMat4 const& rhs) const
|
|
|
|
{
|
|
|
|
for (auto i {0}; i < 16; ++i)
|
|
|
|
{
|
|
|
|
if (data[i] != rhs.data[i])
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
2022-11-16 10:41:27 +08:00
|
|
|
};
|
|
|
|
}
|