<< NARVAL_IP_RectObstacle NARVAL NARVAL_IP_SpaceZoom >>

NARVAL >> NARVAL > NARVAL_IP_RectObstacles

NARVAL_IP_RectObstacles

Generate the coordinates of corners of rectangles (obstacles).

Calling Sequence

[Xs,Ys,X,Y,H,W,A] = NARVAL_IP_RectObstacles(no,L,hm,hM,wm,wM)

Parameters

no :

quantity of rectangles.

L :

square area side.

hm :

minimum height.

hM :

maximum height.

wm :

minimum width.

wM :

maximum width.

Xs :

x-coordinate of all obstacles corners.

Ys :

y-coordinate of all obstacles corners.

X :

x-coordinate of the main corner of each obstacle.

Y :

y-coordinate of the main corner of each obstacle.

H :

height of each obstacle.

W :

width of each obstacle.

A :

angle of each obstacle.

Description

NARVAL_IP_RectObstacles generates the coordinates of the corners 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 side and the x-axis a (randomly chosen between 0 and 2*π). 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.

Examples

no=4;//quantity of obstacles (rectangle)
L=1000;//squared area side
hm=100;//minimal height
hM=250;//maximal height
wm=100;//minimal width
wM=250;//maximal width
[Xs,Ys,X,Y,H,W,A]=NARVAL_IP_RectObstacles(no,L,hm,hM,wm,wM);//application of NARVAL_IP_RectObstacles
Xs
Ys
X
Y
H
W
A

Dependency

NARVAL_IP_RectObstacle

Authors

Foued Melakessou

Contact

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

Home Page


<< NARVAL_IP_RectObstacle NARVAL NARVAL_IP_SpaceZoom >>