VideoCommon/Statistics: Use std::array for projection values

Makes the members within the interface much nicer to look at, and also
makes copying them over much nicer too.
This commit is contained in:
Lioncash
2019-06-20 07:42:16 -04:00
parent baf02194c1
commit 04c06ec661
6 changed files with 36 additions and 72 deletions

View File

@ -58,7 +58,7 @@ static void MultiplyVec3Mat34(const Vec3& vec, const float* mat, Vec3& result)
result.z = mat[8] * vec.x + mat[9] * vec.y + mat[10] * vec.z + mat[11];
}
static void MultipleVec3Perspective(const Vec3& vec, const float* proj, Vec4& result)
static void MultipleVec3Perspective(const Vec3& vec, const Projection::Raw& proj, Vec4& result)
{
result.x = proj[0] * vec.x + proj[1] * vec.z;
result.y = proj[2] * vec.y + proj[3] * vec.z;
@ -67,7 +67,7 @@ static void MultipleVec3Perspective(const Vec3& vec, const float* proj, Vec4& re
result.w = -vec.z;
}
static void MultipleVec3Ortho(const Vec3& vec, const float* proj, Vec4& result)
static void MultipleVec3Ortho(const Vec3& vec, const Projection::Raw& proj, Vec4& result)
{
result.x = proj[0] * vec.x + proj[1];
result.y = proj[2] * vec.y + proj[3];