2024-04-07 08:36:58 -04:00
|
|
|
#include "legounknown.h"
|
|
|
|
|
|
|
|
DECOMP_SIZE_ASSERT(LegoUnknown, 0x50)
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1009a0f0
|
|
|
|
LegoUnknown::LegoUnknown()
|
|
|
|
{
|
2024-05-14 10:35:22 -04:00
|
|
|
for (LegoS32 i = 0; i < sizeOfArray(m_unk0x00); i++) {
|
2024-04-07 08:36:58 -04:00
|
|
|
m_unk0x00[i].Clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1009a130
|
|
|
|
LegoUnknown::~LegoUnknown()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1009a140
|
|
|
|
void LegoUnknown::FUN_1009a140(Vector3& p_point1, Vector3& p_point2, Vector3& p_point3, Vector3& p_point4)
|
|
|
|
{
|
|
|
|
m_unk0x00[0] = p_point1;
|
|
|
|
m_unk0x00[1] = p_point2;
|
|
|
|
|
|
|
|
for (LegoS32 i = 0; i < 3; i++) {
|
|
|
|
m_unk0x00[2][i] = (p_point3[i] - p_point1[i]) * 3.0f - p_point2[i] * 2.0f - p_point4[i];
|
|
|
|
m_unk0x00[3][i] = (p_point1[i] - p_point3[i]) * 2.0f + p_point4[i] + p_point2[i];
|
|
|
|
}
|
|
|
|
}
|
2024-04-14 10:43:07 -04:00
|
|
|
|
|
|
|
// STUB: LEGO1 0x1009a1e0
|
|
|
|
LegoResult LegoUnknown::FUN_1009a1e0(float, Matrix4&, Vector3&, LegoU32)
|
|
|
|
{
|
|
|
|
return FAILURE;
|
|
|
|
}
|