On-Manifold Projected Gradient Descent