nngeometry/object/vector.py
def clone(self):
        """
        Returns a clone of the current object
        """
        if self.dict_repr is not None:
            dict_clone = dict()
            for k, v in self.dict_repr.items():
                if len(v) == 2:
                    dict_clone[k] = (v[0].clone(), v[1].clone())
                else:
                    dict_clone[k] = (v[0].clone(),)
            return PVector(self.layer_collection, dict_repr=dict_clone)
        if self.vector_repr is not None:
            return PVector(self.layer_collection,
                           vector_repr=self.vector_repr.clone())

        Returns a clone of the current object
        
Returns a clone of the current object
Returns a clone of the current object
def clone(self):
        if self.dict_repr is not None:
            dict_clone = dict()
            for k, v in self.dict_repr.items():
                if len(v) == 2:
                    dict_clone[k] = (v[0].clone(), v[1].clone())
                else:
                    dict_clone[k] = (v[0].clone(),)
            return PVector(self.layer_collection, dict_repr=dict_clone)
        if self.vector_repr is not None:
            return PVector(self.layer_collection,
                           vector_repr=self.vector_repr.clone())
def clone ( self ) : if self . dict_repr is not None : dict_clone = dict ( ) for k , v in self . dict_repr . items ( ) : if len ( v ) == 2 : dict_clone [ k ] = ( v [ 0 ] . clone ( ) , v [ 1 ] . clone ( ) ) else : dict_clone [ k ] = ( v [ 0 ] . clone ( ) , ) return PVector ( self . layer_collection , dict_repr = dict_clone ) if self . vector_repr is not None : return PVector ( self . layer_collection , vector_repr = self . vector_repr . clone ( ) )
Returns a clone of the current object
Returns a clone of the current object
"""
        Returns a clone of the current object
        """
self