Implemented MxVector4::SetMatrixProductWrapper (#198)

* Implemented the function wrapper for SetMatrixProduct labeled as
SetMatrixProductWrapper with 100% match.

* Rename for consistency

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Angel 2023-10-11 06:18:48 -04:00 committed by GitHub
parent 02d003673d
commit 19ee8cdc30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -410,13 +410,14 @@ void MxVector4::EqualsScalar(float *p_value)
m_data[3] = *p_value;
}
// OFFSET: LEGO1 0x10002ae0 STUB
void MxVector4::unk1(MxVector4 *p_a, float *p_b)
// OFFSET: LEGO1 0x10002ae0
void MxVector4::SetMatrixProduct(MxVector4 *p_a, float *p_b)
{
SetMatrixProductImpl(p_a->m_data, p_b);
}
// OFFSET: LEGO1 0x10002a40
void MxVector4::SetMatrixProduct(float *p_vec, float *p_mat)
void MxVector4::SetMatrixProductImpl(float *p_vec, float *p_mat)
{
m_data[0] =
p_vec[0] * p_mat[0] + p_vec[1] * p_mat[4] +

View file

@ -125,8 +125,8 @@ public:
void EqualsScalar(float *p_value);
// vtable + 0x84
virtual void unk1(MxVector4 *p_a, float *p_b);
virtual void SetMatrixProduct(float *p_vec, float *p_mat);
virtual void SetMatrixProduct(MxVector4 *p_a, float *p_b);
virtual void SetMatrixProductImpl(float *p_vec, float *p_mat);
virtual MxResult NormalizeQuaternion();
virtual void UnknownQuaternionOp(MxVector4 *p_a, MxVector4 *p_b);
};