ixfx
    Preparing search index...

    Namespace Polar

    Work with Polar coordinates. A Polar.Coord is just { angleRadians:number, distance: number }.

    Conversion: toCartesian, fromCartesian, toString

    Math: divide, invert, multiply, dotProduct

    Geometric manipulations: rotate, rotateDegrees

    Cleaning: clampMagnitude, normalise

    Debugging: toString

    Comparisons: isAntiParallel, isOpposite, isParallel, isPolarCoord

    Namespaces

    Ray

    Type Aliases

    Coord
    PolarRay
    PolarRayWithOrigin

    Functions

    clampMagnitude
    divide
    dotProduct
    fromCartesian
    guard
    invert
    isAntiParallel
    isOpposite
    isParallel
    isPolarCoord
    multiply
    normalise
    rotate
    rotateDegrees
    spiral
    spiralRaw
    toCartesian
    toPoint
    toString