added transform2planecoords.