DefineCircle

DefineCircle[p1, p2, p3]
Function calculates the center, normal and radius of the circle defined by the three spatial points p1, p2, p3. The function returns with {{Ox, Oy, Oz}, {nX, nY, nZ}, r} of the circle, where {nX, nY, nZ} is the normal vector of the plane defined by p1,p2,p3 points.
DefineCircle[p1, p2, p3]
In case of planar case, when p1,p2 and p3 points are defined with 2 dimensional lists, the function calculates the center and the radius of the circle.
  • In case of collinear points the circle can not be defined and the function returns with {{0,0,0},{0,0,1},Infinity} in spatial case or {{0,0},Infinity} in planar case.
Load LinkageDesigner package
In[1]:=
Click for copyable input
Define three planar points
In[2]:=
Click for copyable input
Calculate the center and the radius of the circle defined by P1,P2 and P3 points
In[3]:=
Click for copyable input
Out[3]=
Calculate points of the circle by rotating P1 point around the normal vector anchored by the origin of the circle
In[4]:=
Click for copyable input
Out[4]=
Display the center , normal of the circle and the circle defined by the three points P1,P2,P3
In[5]:=
Click for copyable input
Out[5]=