Learn R Programming

Rknots (version 1.3.2)

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

Description

This is the main class for the present package.

Arguments

Objects from the Class

Objects should be created with calls to newKnot.

See Also

newKnot, makeExampleKnot

Examples

Run this code
# 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)

Run the code above in your browser using DataLab