-
Notifications
You must be signed in to change notification settings - Fork 38
xMath3 Cleanup #694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xMath3 Cleanup #694
Conversation
|
| Section | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | .text |
91.73% | 94.17% | +178 |
| Function | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | xBoxFromCircle(xBox&, const xVec3&, const xVec3&, float) |
0.00% | 55.62% | +142 |
| ✅ | xQuatLength2(const xQuat*) |
0.00% | 100.00% | +36 |
src/SB/Core/x/xMath3.cpp
Outdated
| void xMat3x3Normalize(xMat3x3* o, const xMat3x3* m) | ||
| { | ||
| xMat4x3 temp; | ||
| xVec3Normalize((xVec3*)o, (xVec3*)m); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| xVec3Normalize((xVec3*)o, (xVec3*)m); | |
| xVec3Normalize(&o->right, &m->right); |
src/SB/Core/x/xMath3.cpp
Outdated
| m->at.z = 0.0f; | ||
| return temp_f31; | ||
| } | ||
| if (((F32)__fabs(at->z) < 0.00001f) && ((F32)__fabs(at->x) < 0.00001f)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check out the FABS macro for this one
|
| Section | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | .text |
91.73% | 94.17% | +178 |
| Function | From | To | Bytes | |
|---|---|---|---|---|
| 📈 | xBoxFromCircle(xBox&, const xVec3&, const xVec3&, float) |
0.00% | 55.62% | +142 |
| ✅ | xQuatLength2(const xQuat*) |
0.00% | 100.00% | +36 |
JoshSanch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always glad to see cleanup PRs, especially now that we're getting closer to project completion. Modders will thank you for your service
Arranged functions in both header and cpp in objdiff order. Some cleanup. Also implemented last two function that needed it. Plan to do more cleanup but this file gets touched a lot and thought I'd kick up what I had.