human
Write me a code to find the equation of plane which passes through two points and parallel to a given axis and the other steps required given the following:
Find the equation of plane which passes through two points and parallel to a given axis | Python3 implementation to find the equation of plane which passes through two points and parallel to a given axis.
Find direction vector of points ( x1 , y1 , z1 ) and ( x2 , y2 , z2 ).
Values that are calculated and simplified from the cross product.
Print the equation of plane.
Driver Code.
Point A.
Point B.
Given axis.
Function Call"
Solution in Python:
assistant
#Here is code to find the equation of plane which passes through two points and parallel to a given axis and the other steps required.
 def findEquation ( x1 , y1 , z1 , x2 , y2 , z2 , d , e , f ) :
	a = x2 - x1
	b = y2 - y1
	c = z2 - z1
	A = ( b * f - c * e )
	B = ( a * f - c * d )
	C = ( a * e - b * d )
	D = - ( A * d - B * e + C * f )
	print ( A , " x ▁ + ▁ " , B , " y ▁ + ▁ " , C , " z ▁ + ▁ " , D , " = ▁ 0" )
if __name__ == " _ _ main _ _ " :
	x1 = 2
	y1 = 3
	z1 = 5 ;
	x2 = 6
	y2 = 7
	z2 = 8
	a = 11
	b = 23
	c = 10
	findEquation ( x1 , y1 , z1 , x2 , y2 , z2 , a , b , c )