Function convexHull

Simple convex hull impementation. Returns a set of points which enclose pts.

For more power, see something like Hull.js

  • Parameters

    • Rest...pts: readonly Point[]

    Returns readonly Point[]