added function point2plane