plane separation calculation