@nbogie/p5.neill-utils
    Preparing search index...

    Function polarToCartesian

    • Converts polar coordinates (radius and angle) to Cartesian coordinates (x and y). Ignores p5's angleMode.

      Parameters

      • angle: number

        The angle in radians

      • radius: number

        The distance from the origin

      Returns SimpleXY

      An object with {x,y} the Cartesian coordinates.

      https://p5js.org/reference/p5.Vector/fromAngle/ - If you want a p5.Vector instead