Integrals of vector functions and projectile motion