Perform the center of the disc intersecting three points.
[xc,yc] = NL_F_DiscCenter(x1,y1,x2,y2,x3,y3)
x-coordinate of the first point.
y-coordinate of the first point.
x-coordinate of the second point.
y-coordinate of the second point.
x-coordinate of the third point.
y-coordinate of the third point.
x-coordinate of the disc center.
y-coordinate of the disc center.
NL_F_DiscCenter computes the coordinates (xc,yc) of the disc center intersecting the three points (x1,y1), (x2,y2) and (x3,y3).
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); | ![]() | ![]() |