Generate the coordinates of the corners of a rectangle (obstacle).
[Ox,Oy] = NL_V_RectangleCorners(X,Y,H,W,A)
X-coordinate of the main corner.
Y-coordinate of the main corner.
Rectangle height.
Rectangle width.
Angle.
X-coordinate of all obstacle corners.
Y-coordinate of all obstacle corners.
NL_V_RectangleCorners generates the coordinates of the corners of a rectangle (obstacle). The rectangle is defined by its main corner coordinates [X,Y], its height H, its width W and the angle between its largest side and the x-axis A. (respectivelly
) gathers the x-coordinate (respectivelly y-coordinate) of all obstacle corners.