Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
A curved line between two points
ResourceFunction["ArcLine"][{p1,p2},r] represents a curved 2D line segment joining points p1 and p2 with radius r. | |
ResourceFunction["ArcLine"][{p1,p2},Scaled[n]] represents a curved 2D line segment joining points p1 and p2 with radius n times the distance between p1 and p2. | |
ResourceFunction["ArcLine"][{p1,p2}] represents a curved 2D line segment joining points p1 and p2 with radius Scaled[1]. |
Generate an arc between two points:
In[1]:= |
Out[1]= |
Show this arc segment:
In[2]:= |
Out[2]= |
Arc radius can be set anywhere between the 1/2 of the Euclidean distance between the points and infinity:
In[3]:= |
Out[3]= |
Negative radius values change the orientation of the arc:
In[4]:= |
Out[4]= |
Arc radius can be given as a multiple of the Euclidean distance between the points:
In[5]:= |
Out[5]= |
The radius of the ArcLine cannot be less than 1/2 of the Euclidean distance between the points:
In[7]:= |
Out[7]= |
In[8]:= |
Out[8]= |
You can create rounded regular polygons using CirclePoints:
In[9]:= |
Out[9]= |
In[10]:= |
Out[10]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License