d3-e3 Refactoring radians method using atan2.