3d-dart/server/system/NAfunctionLib.py
def calc_angle(a1, a2, a3):
	
	"""Return the angle between the three argument atoms."""
	
	if a1 == None or a2 == None or a3 == None:
        	return None
	
	a21 = a1.position - a2.position
	a21 = a21 / (length(a21))

	a23 = a3.position - a2.position
	a23 = a23 / (length(a23))

	return math.acos(numpy.dot(a21, a23))
Return the angle between the three argument atoms.
Return the angle between the three argument atoms.
Return the angle between the three argument atoms .
def calc_angle(a1, a2, a3):
	if a1 == None or a2 == None or a3 == None:
        	return None
	a21 = a1.position - a2.position
	a21 = a21 / (length(a21))
	a23 = a3.position - a2.position
	a23 = a23 / (length(a23))
	return math.acos(numpy.dot(a21, a23))
def calc_angle ( a1 , a2 , a3 ) : if a1 == None or a2 == None or a3 == None : return None a21 = a1 . position - a2 . position a21 = a21 / ( length ( a21 ) ) a23 = a3 . position - a2 . position a23 = a23 / ( length ( a23 ) ) return math . acos ( numpy . dot ( a21 , a23 ) )
Return the angle between the three argument atoms.
Return the angle between the three argument atoms .
"""Return the angle between the three argument atoms."""
a1
a2
a3