Original Post
ok here''s what my plane class has
[class plane]
member variables:
vector3 normal
float intercept
member function:
int classifyPoint(vector3 p)
begin
float distance = (p.x * normal.x) + (p.y * normal.y) +
p.z * normal.z) + intercept
if (distance > 0.01f)
return POINT_IN_FRONT_OF_PLANE;
else if(distance < -0.01f)
return POINT_BEHIND_PLANE;
else
return POINT_ON_PLANE;
end
is this the correct way to classify a point?