Knot-class: Class "Knot" - a container for knot and link coordinates and...

Description Objects from the Class Note See Also Examples

Description

This is the main class for the present package.

Objects from the Class

Objects should be created with calls to newKnot.

Note

Note: This is a summary for reference. For a detailed explanation, please see the vignette. The slot points3D contains the 3D coordinates of points of a polygonal knot or link as an N x 3 matrix. The slot ends contains a vector of link separators. This is automatically set to numeric(0) for knots.

See Also

newKnot, makeExampleKnot

Examples

 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)


Search within the Rknots package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.