toCornersAsArray

function toCornersAsArray(box): [Point, Point, Point, Point]

Parameters

ParameterType
boxBox

Returns

[Point, Point, Point, Point]

An array containing the 4 points of the box in this exact order:
[top left, top right, bottom right, bottom left].