swapped b and c in getLocalPosition()