Work with Polar coordinates. A Polar.Coord is just { angleRadians:number, distance: number }.
{ 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
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