string_to_circle | R Documentation |
Get its center, radius and angle from a circle's string
string_to_circle(x, y, xend, yend, radian = NULL, radius = NULL)
x, y, xend, yend |
start and end points defining a string of a circle |
radian |
angle of the string. |
radius |
radius of the circle. Only used if |
For a string, given its radian or radius, there will be two circle centers matched. This function will return both centers in a order of left center and right center. For brevity, the radian will always less than pi (0-2*pi).
a list of center, radius, string.start, string.end, angle, angle.start, angle.end
string_to_circle(-1, 0, 1, 0, pi)
string_to_circle(-1, 0, 1, 0, pi/2)
string_to_circle(0, 1, 0, -1, pi/2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.