Class "Knot" – a container for knot and link coordinates and ends
This is the main class for the present package.
Objects from the Class
Objects should be created with calls to
Note: This is a summary for reference. For a detailed explanation, please see the vignette.
points3D contains the 3D coordinates of points of a polygonal knot or link as an N x 3 matrix.
ends contains a vector of link separators. This is automatically set to
numeric(0) for knots.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# create an object of class 'Knot' by using new link <- makeExampleKnot( k = FALSE ) new('Knot', points3D = link$points3D, ends = link$ends) #or by means of the constructor newKnot(points3D = link$points3D, ends = link$ends) #for knots, it is sufficient to specify the 3D coordinates #ends are set by default to numeric(0) knot <- makeExampleKnot( k = TRUE ) newKnot(points3D = knot) #for creating an example, use makeExampleKnot. #knot: makeExampleKnot(k = TRUE) #link: makeExampleKnot(k = FALSE)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.