Function: rectToVertices

CALL:

b = rectToVertices(rect)

DESCRIPTION:

rectToVertices, get the coordinates of the corners of a rectangle [left bottom width height].

INPUT:

rect any
rectangle [left bottom width height]

OUTPUT:

v any
[4x2] array with the (x,y) coordinates of the corners of the rectangle
[lowerleft; lowerright; upperright; upperleft]