-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Refactoring to reduce confusing terms #80
Comments
Regarding 'adjustments' personally i would change it to 'drop' as this would make the code clearer and, if i am not mistaken, would require no changes to the logic of the library. This would also avoid breaking apps that use the results as they are. (instead of drop_adj -> drop_angle) Regarding the look angle question, would it not be possible to replace the 'distance' value with the 'true' distance by calculating it using the cos formula in the discussion? So when a distance of 300yards is accessed, you get the correct drop at a distance of 300 yards, or would this possibly cause confusions elsewhere? |
So we could probably take care of this all in the
Of course, this would break anything that relied on the old names. @o-murphy is there a way to do this without requiring a major release? |
@dbookstaber |
My thinking was that That said, it wouldn't hurt to add a |
This makes sense. Also, about My opinion would be to return the TrajectoryData at the new |
Yes, that makes sense and I can't find any dependencies that would break. |
Following previous logic, for: |
I also created JS version of this library, but have not time to update it to v2.x.x, if you want you can contribute https://github.com/o-murphy/js-ballistics |
Sync fork to master branch before making updates |
As shown in this discussion, we should try to improve the clarity and accessibility between look_distance and horizontal distance.
Per this discussion we should either switch the signs on "adjustments" or rename them so that they are clearly describing the drop instead of the adjustment to correct for the drop.
The text was updated successfully, but these errors were encountered: