POV-Ray : Newsgroups : povray.general : Plane equitation : Re: Plane equitation Server Time
8 Aug 2024 14:24:13 EDT (-0400)
  Re: Plane equitation  
From: Josh English
Date: 29 Nov 2000 10:53:38
Message: <3A252682.39DA686B@spiritone.com>
Thank you, I was thinking this, but I didn't have a chance to answer last
night.

Josh

Pascal Baillehache wrote:

> abs((A*x+B*y+C*z)/sqrt(sqr(A)+sqr(B)+sqr(C))-D)
> will do the job
>
> Baillp
>

> 3A2### [at] homenl...
> > Thanks both!
> > Where I need this information for, is a little program I'm writing,
> > which does some calculations at points/planes. I want to calculate the
> > distance of a point to a plain, with :
> > abs(A*x+B*y+C*z-D)/sqrt(sqr(A)+sqr(B)+sqr(C)). I use that distance for
> > some things and want the result being displayed by povray, but when
> > povray uses another equation, the graphic would be false. How do I have
> > to calculate the distance in my program, so that my calculations are
> > correct with what povray displays?

--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

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