Cartesian coordinate systems and transformations for Python