I wouldn't call this "getTarget". Maybe "findTarget" or "calcTarget"? Like it's not "getting" it from anywhere, it's pulling out of thin air.

Also, you should probably take `position, lat, lon` rather than `p, c`.