Back

#ballistics

1 APIs with this tag

Projectile Motion API

Ballistic projectile-motion maths as an API, computed locally and deterministically. The launch endpoint takes a launch speed and angle (and, optionally, a launch height above the landing plane and a custom gravity) and returns the full flight: the horizontal and initial vertical velocity components, the time of flight, the range, the maximum height, the time to the apex and the impact speed and angle — using R = v0²·sin(2θ)/g on flat ground and solving the full quadratic h0 + vy0·t − ½g·t² = 0 when launched from a height. The trajectory endpoint gives the exact state of the projectile — its x and y position, its horizontal and vertical velocity, its speed and its direction — at any given time t or at any given horizontal distance x. The range endpoint works backwards: from a target range it solves the two complementary launch angles that reach it for a given speed (the flat fast shot and the high lob), or the launch speed needed at a chosen angle, and reports the maximum achievable range. Everything is an idealised point mass under constant gravity with no air resistance, computed locally and deterministically, so it is instant and private. Ideal for physics-education and ballistics tools, game and simulation development, sports-trajectory and artillery-style calculators, and STEM teaching. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is ballistic projectile kinematics; for orbital mechanics use an orbital API, for universal gravitation use a gravitation API.

api.oanor.com/projectile-api