#NEWLINE# def is_similar( self , other ) : #NEWLINE# #INDENT# '\n        Return True if self and other are contained in the same line.\n\n        Examples\n        ========\n\n        >>> from sympy import Point3D, Line3D\n        >>> p1, p2, p3 = Point3D(0, 0, 0), Point3D(1, 1, 1), Point3D(2, 2, 2)\n        >>> l1 = Line3D(p1, p2)\n        >>> l2 = Line3D(p1, p3)\n        >>> l1.is_similar(l2)\n        True\n        ' #NEWLINE# if isinstance ( other , Line3D ) : #NEWLINE# #INDENT# if ( ( self . direction_cosine == other . direction_cosine ) and ( other . p1 in self ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# raise NotImplementedError ( )