halfTransform function

Calculate a half transformation