Relative coordinates recalculation logic