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); Copy
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.
point
Point
Origin
Converts a Cartesian coordinate to polar
Any additional properties of
point
are copied to object.