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
Feature/cleanup #63
Feature/cleanup #63
Conversation
- More documentation - Formatting - Remove call chaining
- More documentation - Formatting - Remove call chaining - Tune the code to allow dart2js to generate better output (also for Aabb2)
- More documentation - Formatting - Remove call chaining - Tune the code to allow dart2js to generate better output - Remove duplicate code => Aabb3.getPN
- Change documentation comment style - Formatting - Tune the code to allow dart2js to generate better output - Change type annotations from num to double (and the toDouble calls) to match the style of the rest of the library - Don't use the * operator on matrix as it requires type checking
- More documentation - Formatting - Fix normalConstant constructor caseing
- More documentation - Formatting - Remove copyOriginDirection - Tune the code to allow dart2js to generate better output
- More documentation - Formatting - Tune the code to allow dart2js to generate better output - Fix bug in copyFrom
- More documentation - Formatting - Remove copyOriginDirection method (yes it was really named that way...)
- Formatting
- Formatting - Tune the code to allow dart2js to generate better output - Remove call chaining - Remove duplicated code from operators
- Formatting - Tune the code to allow dart2js to generate better output - Remove call chaining - Remove duplicated code from operators
…ey are only aliases with a different name.
…ey are only aliases with a different name.
- Formatting - Tune the code to allow dart2js to generate better output - Remove call chaining - Remove duplicated code from operators
…ey are only aliases with a different name.
- Formatting - Tune the code to allow dart2js to generate better output - Remove call chaining - Remove duplicated code
…into feature/cleanup Conflicts: lib/src/vector_math/opengl.dart
Keep up with my changes
- Formatting - Tune the code to allow dart2js to generate better output - Remove call chaining - Remove duplicated code from operators
- Formatting - Tune the code to allow dart2js to generate better output - Remove call chaining - Remove duplicated code from operators
double get t => storage[1]; | ||
double get p => storage[2]; | ||
Vector4 get xxxx => new Vector4(storage[0], storage[0], storage[0], storage[0] | ||
); |
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.
what's with this weird style?
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.
I used the new formatter that has some issues left. I can fix them by hand or leave them in until the formatter is fixed
Add Quad intersection to Obb3 and Aabb3 Add tests for Obb3 intersects Triangle
Fix Quad intersection
Fix Quad.copyNormal test, the used quad was not valid Add Quad.copyTriangles test
…ts to much memory.
Thanke @dhenneke for helping me with additional Aabb3 and Obb3 intersecion tests! |
Hi, This is too big to review. Please break it into small pieces. |
I already plan that for some time, but haven't find the right way yet as some changes are very big on their own. But I will manage that somehow... |
I recommend separating breaking changes from non-breaking changes and then further splitting up those change sets. |
I like it, @Fox32. Keep an eye on the new Box2d library as you move forward - https://github.com/google/box2d.dart |
@Fox32 Do you have plans to track performance changes for these tweaks? |
@kevmoo I think I try to do the performance things later, but that Box2d would be a nice benchmark for some of the core classes, sadly Box2d isn't covering much of vector_math. Do you have any bigger changes to vector_math in the pipeline? |
@Fox32 Nope. |
@Fox32 Keep things formatted using |
@kevmoo @johnmccutchan |
Everything, except call chaining, is now included \o/ |
@Fox32 Thank you very much for your great work. Looking forward to 2.0 without call chaining. |
I started this pull request with the goal to remove call chaining (#59) but I also took a look at "some" other things:
and the new code:
In this case range checks could be removed, in other cases less calls to getters are made. It also has a small influence on code size, but I don't think that these are significant. For the future it would be nice to have a test bench to compare the performance of changes in both the DartVM and Dart2Js. Not sure what to choose as a benchmark here, maybe some sort of simulation?