getstringpoints | R Documentation |
Returns the coordinates of a knot's path
getstringpoints(b, give_strand = FALSE, n = 100)
b |
The knot path (coerced to |
give_strand |
Boolean, with default |
n |
The number of points to use when constructing the Bezier curve |
Returns either a two- or three- column matrix
Function knotplot()
returns the points of the string too, but
with NA
for understrands.
Robin K. S. Hankin
knotplot
plot(getstringpoints(k4_1),asp=1)
a <- getstringpoints(k11a179,TRUE)
plot(a,asp=1,col=rainbow(24)[a[,3]])
d <- 1200
plot(rbind(
sweep(getstringpoints(k7_1),2,c(0,0)),
sweep(getstringpoints(k7_2),2,c(0,d)),
sweep(getstringpoints(k7_3),2,c(d,0)),
sweep(getstringpoints(k7_4),2,c(d,d))
),asp=1,xlab='',ylab='')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.