王健林唱的歌:关于C语言点和平面的判断如何实现

来源:百度文库 编辑:高考问答 时间:2024/04/29 07:33:32
题目:Please write a function to give the relation of a point to a plane. The input parameters of this function are the point and the plane. Express the plane with a point on it and its normal vector. Return whether the point is on the plane, before the plane or behind the plane. Define the data structure if needed.
能否详细点啊,最好是设计思想!

Too many ways!
point(a,b,c) represent the point.
plane(A,B,C,D) represent the plane(as plane equation is Ax+By+cZ+D=0)
then if Aa+Bb+Cc+D equal zero ...
if ...
if ...