Function fromCartesian

Converts a Cartesian coordinate to polar

import { Polar } from 'https://unpkg.com/ixfx/dist/geometry.js';

// Yields: { angleRadian, distance }
const polar = Polar.fromCartesian({x: 50, y: 50}, origin);

Any additional properties of point are copied to object.