#NEWLINE# def distance3d_squared( p1 , p2 ) : #NEWLINE# #INDENT# ( x , y , z ) = p1 #NEWLINE# ( xx , yy , zz ) = p2 #NEWLINE# dx = ( x - xx ) #NEWLINE# dy = ( p2 - yy ) #NEWLINE# dz = ( z - zz ) #NEWLINE# return ( ( ( dx * dx ) + ( dy * dy ) ) + ( dz * dz ) )