UAV Guidance Law for Ground-based Target Trajectory Tracking and Loitering