libshotscope
is a C++ library designed to simulate golf ball trajectories based on initial conditions like velocity, atmospheric data, and more. It provides easy-to-use functions to visualize or calculate the ball’s flight path and landing point.
Much of the math here is based on work done by Prof. Alan M. Nathan at the University of Illinois Urbana-Champaign. I turned it into a C++ library and incorporated tests.
git clone https://github.com/gdifiore/libshotscope.git
cd libshotscope
chmod +x build.sh
./build.sh
How to use libshotscope
Why/Where to use libshotscope