module:extras/torusknot.TorusKnot

Back to documentation index.

### new module:extras/torusknot.TorusKnot(revolutions, r, q, s1, m1)

A curve evaluator object for a torus knot or torus-knot-like curve. Uses the formula given in “Decorative Knot Patterns” by L. D. Taylor, 2011.

Parameters

Methods

### (static) module:extras/torusknot~TorusKnot.interlaced(p, q, r1, s1)

TODO: Not documented yet.

Parameters

Return Value

The resulting torus knot evaluator. (Type: TorusKnot)

### (static) module:extras/torusknot~TorusKnot.simple(p, q, r1)

Generates a torus knot with simple parameters.

Parameters

Return Value

The resulting torus knot evaluator. (Type: TorusKnot)

Back to documentation index.