computing plane equations