POV-Ray : Newsgroups : povray.advanced-users : Math question : Re: Math question Server Time
30 Jul 2024 06:30:13 EDT (-0400)
  Re: Math question  
From: Ron Parker
Date: 30 Dec 1999 21:10:13
Message: <386c0f93.287614428@news.povray.org>
On Thu, 30 Dec 1999 19:06:42 -0600, David Fontaine <dav### [at] faricynet>
wrote:

>> If your normal vector is <a,b,c> and the position of the point is <x,y,z>,
>> you should just have to test a*x+b*y+c*z, if it's positive, the point is in
>> front of the plane, if it's negative, the point is behind the plane, and if
>> it's zero, the point lies on the plane.
>
>Thanks! Actually I got it from by brother just a couple of minutes ago, I can't
>believe it was so simple...

The same answer, put another way, is even simpler:  If the vector is V
and the point is P, you can use vdot(V,P) to get the same result.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.