Aha! Flipped coordinates are what was messing it up!