Added cartesian/polar conversions.