point.toPolar(o)

Convert rectangular to polar coordinates. If the origin o is not specified, it is considered to be at (0,0).