add transform method

Only rigid transforms, and only in-place for now.