convert between point and position