Converts to Cartesian coordinate from polar.
import { Polar } from 'https://unpkg.com/ixfx/dist/geometry.js';const origin = { x: 50, y: 50}; // Polar origin// Yields: { x, y }const polar = Polar.toCartesian({ distance: 10, angleRadian: 0 }, origin); Copy
import { Polar } from 'https://unpkg.com/ixfx/dist/geometry.js';const origin = { x: 50, y: 50}; // Polar origin// Yields: { x, y }const polar = Polar.toCartesian({ distance: 10, angleRadian: 0 }, origin);
Distance and angle can be provided as numbers intead:
// Yields: { x, y }const polar = Polar.toCartesian(10, 0, origin); Copy
// Yields: { x, y }const polar = Polar.toCartesian(10, 0, origin);
Optional
Converts to Cartesian coordinate from polar.
Distance and angle can be provided as numbers intead:
Param: a
Param: b
Param: c
Returns