Skip to content

Match mt_matrix.cpp and mt_quat.cpp - #172

Open
loserkidsblink wants to merge 1 commit into
doldecomp:mainfrom
loserkidsblink:port/mt-matrix
Open

loserkidsblink wants to merge 1 commit into
doldecomp:mainfrom
loserkidsblink:port/mt-matrix

Conversation

@loserkidsblink

@loserkidsblink loserkidsblink commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor
  • mt_matrix.h: declared the rest of Matrix's methods
  • mulPos and getRotate are now const (mangled names change; RSBE01.lst updated)
  • mt_vector.h: added Vec3f::set
  • newly named Matrix/mtQuat functions added to RSBE01.lst

@decomp-dev

decomp-dev Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Report for RSBE01_02 (7074404 - b581c4c)

📈 Matched code: 1.77% (+0.04%, +5984 bytes)
📈 Linked code: 1.62% (+0.04%, +5984 bytes)
📈 Matched data: 15.73% (+0.00%, +112 bytes)
📈 Linked data: 16.05% (+0.00%, +112 bytes)

✅ 32 new matches
Unit Item Bytes Before After
main/sora/mt/mt_matrix Matrix::inverse(Matrix*) const +760 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::getSRT(Vec3f*, Vec3f*, Vec3f*) const +588 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::getRotate(Vec3f*) const +548 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::setSRT(const Vec3f&, const Vec3f&, const Vec3f&) +432 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::setRotXYZ(float, float, float) +376 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::getScale(Vec3f*) const +332 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::normalize() +296 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::setQuat(const nw4r::math::QUAT*) +244 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::rotX(float) +172 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::rotY(float) +172 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::rotZ(float) +172 0.00% 100.00%
main/sora/mt/mt_quat mtQuatRotAxis(nw4r::math::QUAT*, const Vec3f*, float) +172 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::mul(const Matrix*, Matrix*) const +168 0.00% 100.00%
main/sora/mt/mt_quat mtQuatRotVec(const nw4r::math::QUAT*, const Vec3f*, Vec3f*) +168 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::setRotX(float) +156 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::setRotY(float) +156 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::setRotZ(float) +156 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::trans(float, float, float) +136 0.00% 100.00%
main/sora/mt/mt_quat mtQuatMul(const nw4r::math::QUAT*, const nw4r::math::QUAT*, nw4r::math::QUAT*) +108 0.00% 100.00%
main/sora/mt/mt_matrix mtMtx44Transpose(const nw4r::math::MTX44*, nw4r::math::MTX44*) +100 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::mulVec(const Vec3f*, Vec3f*) const +92 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::mulPos(const Vec3f*, Vec3f*) const +84 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::mulPos(const Vec3f*, float*) const +84 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::scale(const Vec3f*, Matrix*) const +84 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::rotXYZ(const Vec3f*) +76 0.00% 100.00%
main/sora/mt/mt_matrix .data +72 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::setTrans(float, float, float) +56 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::copy(Matrix*) const +52 0.00% 100.00%
main/sora/mt/mt_matrix Matrix::setIdentity() +44 0.00% 100.00%
main/sora/mt/mt_matrix .sdata2 +24 0.00% 100.00%

...and 2 more new matches

@loserkidsblink
loserkidsblink force-pushed the port/mt-matrix branch 4 times, most recently from f76691e to 53df9a3 Compare November 8, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant