human
Find if it 's possible to rotate the page by an angle or not. | Function to find if it 's possible to rotate page or not.
Calculating distance b / w points.
If distance is not equal.
If the points are in same line.
Points a , b , and c"
Solution in Python:
 ... Can you provide a code to find if it 's possible to rotate the page by an angle or not?
assistant
#Here is code to find if it 's possible to rotate the page by an angle or not.
 def possibleOrNot ( a1 , a2 , b1 , b2 , c1 , c2 ) :
	dis1 = ( pow ( b1 - a1 , 2 ) + pow ( b2 - a2 , 2 ) )
	dis2 = ( pow ( c1 - b1 , 2 ) + pow ( c2 - b2 , 2 ) )
	if ( dis1 != dis2 ) :
		print ( " No " )
	elif ( b1 == ( ( a1 + c1 ) // 2.0 ) and b2 == ( ( a2 + c2 ) // 2.0 ) ) :
		print ( " No " )
	else :
		print ( " Yes " )
a1 , b1 , c1 = 1 , 2 , 3
a2 = b2 = c2 = 0
possibleOrNot ( a1 , a2 , b1 , b2 , c1 , c2 )