<< NL_F_DiffVect NL_F: Function NL_F_DistanceNiNj >>

NARVAL >> NL_F: Function > NL_F_DiscCenter

NL_F_DiscCenter

Perform the center of the disc intersecting three points.

Calling Sequence

[xc,yc] = NL_F_DiscCenter(x1,y1,x2,y2,x3,y3)

Arguments

x1 :

x-coordinate of the first point.

y1 :

y-coordinate of the first point.

x2 :

x-coordinate of the second point.

y2 :

y-coordinate of the second point.

x3 :

x-coordinate of the third point.

y3 :

y-coordinate of the third point.

xc :

x-coordinate of the disc center.

yc :

y-coordinate of the disc center.

Description

NL_F_DiscCenter computes the coordinates (xc,yc) of the disc center intersecting the three points (x1,y1), (x2,y2) and (x3,y3).

Examples

x1=100;
y1=100;
x2=200;
y2=200;
x3=300;
y3=100;
[xc,yc]=NL_F_DiscCenter(x1,y1,x2,y2,x3,y3);//application of NL_F_DiscCenter
d=NL_F_DistanceSiDj(xc,yc,x1,y1);
nx=[x1 x2 x3];
ny=[y1 y2 y3];
g=NL_G_MakeGraph('DiscCenter',3,[],[],nx,ny);
f=NL_G_ShowGraphN(g,1);
xarc(xc-d,yc+d,2*d,2*d,0,360*64);

Dependency

NL_F_Bisection

Report an issue
<< NL_F_DiffVect NL_F: Function NL_F_DistanceNiNj >>