Bundling all changes done on the plane

@qinweigong 
Shall we guard against <= 0 arguments for these three functions?