Path functions with Cartesian coordinates