Module: shape-points/rect

calculate points for rectangle

Parameters:
Name Type Description
x number

(center)

y number
width number
height number
Source:
Returns:

[x1, y1, x2, y2, ... xn, yn]

Type
array