Generate the coordinates of the corners of rectangles (obstacles) in respect with a set of defined angles.
[Xs,Ys,X,Y,H,W,A] = NARVAL_IP_RectObstacles(no,L,hm,hM,wm,wM,Al)
quantity of rectangles.
square area side.
minimum height.
maximum height.
minimum width.
maximum width.
vector of available angles.
x-coordinate of all obstacles corners.
y-coordinate of all obstacles corners.
x-coordinate of the main corner of each obstacle.
y-coordinate of the main corner of each obstacle.
height of each obstacle.
width of each obstacle.
angle of each obstacle.
NARVAL_IP_RectMObstacles generates the corners coordinates of lo rectangles (obstacles) inside a square of side L. Each rectangle is defined by its main corner coordinates [x,y], its height h (randomly chosen between hm and hM), its width w (randomly chosen between wm and wM) and the angle between its largest sides and the x-axis a (randomly chosen between the set of available angles stored in Al). These values for all obstacles are stored respectivelly in X, Y, H, W and A. Xs (respectivelly Ys) gathers the x-coordinate (respectivelly y-coordinate) of all obstacle corners.
Dr. Foued Melakessou
Research Associate
Interdisciplinary Centre for Security, Reliability and Trust
Room F106
University of Luxembourg
6, rue Coudenhove Kalergi
L-1359 Luxembourg-Kirchberg
E-mail: foued.melakessou@uni.lu
Tel: (+352) 46 66 44 5346