#NEWLINE# def equals( self , other ) : #NEWLINE# #INDENT# 'Returns True if self and other are the same mathematical entities' #NEWLINE# if ( not isinstance ( self , Line3D ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return Point3D . are_collinear ( self . p1 , other . p1 , self . p2 , other . p2 )