Bidirectional transformation tool