Skip to content

Function: rotatedBoxCorners() ​

ts
function rotatedBoxCorners(b, inset?): ScreenPoint2D[];

Experimental

The 4 corners of a rotated box (clockwise from top-left), optionally inset.

Parameters ​

ParameterTypeDefault value
bRotatedBoxundefined
insetnumber0

Returns ​

ScreenPoint2D[]

Released under the MIT License.