libballistics icon indicating copy to clipboard operation
libballistics copied to clipboard

Unclear meaning of Ballistics_get_range returns

Open rdhite opened this issue 4 years ago • 1 comments

The header indicates // Returns projectile path, in inches, relative to the line of sight. for the Ballistics_get_range function, but does not specify how to interpret what relative means. Is the value returned intended to be interpreted as a deviation from the straight line path of the shooting angle on the y-axis, or is the intended interpretation to be a deviation "under" and perpendicular to the straight line path. The latter means the return value has to be decomposed into x- and y- components based on the shooting angle whereas the former is as simple as y = (shooting angle) * x + (calculated deviation at x).

Which method is the correct interpretation?

rdhite avatar Mar 28 '21 06:03 rdhite

Upon further thought, I don't think the perpendicular option is mathematically valid and will continue forward under the presumption that Ballistics_get_range returns a y-axis deviation that can be directly added to the y=mx+b of the shot line.

I will leave the issue open on the event I'm incorrect.

rdhite avatar Mar 29 '21 00:03 rdhite