b = rectToVertices(rect)
rectToVertices, get the coordinates of the corners of a rectangle [left bottom width height].
rect | any | rectangle [left bottom width height] |
v | any | [4x2] array with the (x,y) coordinates of the corners of the rectangle [lowerleft; lowerright; upperright; upperleft] |