ixfx
    Preparing search index...

    Function toCartesian

    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);

    Distance and angle can be provided as numbers intead:

    // Yields: { x, y }
    const polar = Polar.toCartesian(10, 0, origin);