fix translatePoints to use the right (and more performant check)