Parameters
- points: Vec2[]
- getScore: (extent: Extent) => number
- isBetter: (score: number, bestScore: number) => boolean
- initialBestScore: number
OptionalcandidateAngles: number[]
A SurroundingRectangle (polygon and angle), or null if the given points did not produce a valid hull.
A generalized function for computing a surrounding rectangle for a given array of points. The caller supplies
getScoreandisBetterfunctions that define the heuristic which determines what kind of rectangle to return.