Source code for pyknotid.spacecurves.link

'''
Link
====

.. image:: torus_hopf_link.png
   :align: center
   :scale: 50%
   :alt: A hopf link visualised by pyknotid

Class for dealing with multiple curves as a link. :class:`Link`
provides methods for topological manipulation and calculations on
multiple curves.


API documentation
~~~~~~~~~~~~~~~~~
'''

import numpy as n

try:
    from pyknotid.spacecurves import chelpers
except:
    from pyknotid.spacecurves import helpers as chelpers
from pyknotid.spacecurves import helpers
from pyknotid.spacecurves.knot import Knot
from pyknotid.visualise import plot_projection
from pyknotid.utils import (vprint, get_rotation_matrix,
                           ensure_shape_tuple)