POV-Ray : Newsgroups : povray.advanced-users : Math question : Re: Math question Server Time
30 Jul 2024 06:25:41 EDT (-0400)
  Re: Math question  
From: Kevin Wampler
Date: 30 Dec 1999 17:35:21
Message: <386BDE29.9B06B662@tapestry.tucson.az.us>
David Fontaine wrote:

> If I have an arbitrary vector representing the surface normal of a plane
> which passes through the origin, and an arbitrary point, how do I tell
> if that point is in front or back of the plane?

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.


Post a reply to this message

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