<< NARVAL_IP_RectMObstacles NARVAL NARVAL_IP_RectObstacles >>

NARVAL >> NARVAL > NARVAL_IP_RectObstacle

NARVAL_IP_RectObstacle

Generate the coordinates of the corners of a rectangle (obstacle).

Calling Sequence

[x,y] = NARVAL_IP_RectObstacle(x1,y1,h,w,a)

Parameters

x1 :

x-coordinate of the main corner.

y1 :

y-coordinate of the main corner.

h :

rectangle height.

w :

rectangle width.

a :

angle.

x :

x-coordinate of all obstacle corners.

y :

y-coordinate of all obstacle corners.

Description

NARVAL_IP_RectObstacle generates the coordinates of the corners of a rectangle (obstacle). The rectangle is defined by its main corner coordinates [x1,y1], its height h, its width w and the angle between its largest side and the x-axis a. x (respectivelly y) gathers the x-coordinate (respectivelly y-coordinate) of all obstacle corners.

Examples

x1=300;//coordinates of the first corner
y1=400;
h=200;//height
w=100;//width
a=%pi/4;//angle
[x,y]=NARVAL_IP_RectObstacle(x1,y1,h,w,a);//application of NARVAL_IP_RectObstacle
x
y

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_RectMObstacles NARVAL NARVAL_IP_RectObstacles >>