POV-Ray : Newsgroups : povray.off-topic : Math question (inside box) : Re: Math question (inside box) Server Time
28 Jul 2024 16:19:18 EDT (-0400)
  Re: Math question (inside box)  
From: Patrick Elliott
Date: 5 Aug 2013 05:18:43
Message: <51ff6df3$1@news.povray.org>
On 8/5/2013 2:15 AM, Patrick Elliott wrote:
> However... I occurs to me that I might be able to use one plane, and a
> distance.. So, as long as the position was rotated, to match a plane
> that is align to XY (or, actually, due to how the world works, XZ), then
> I can test if its in "that" box, and then merely do:
>
> float dist = llVecDist(llGetPos(), P);
> if (dist < maxdist & dist > mindist)
> {
>    //Rest of the code.
> }
>
> Thus, only testing "one" box, and only on that single plane.
>
> Then again, I screwed up the last idea so badly... lol

And, speaking of which.. again, I forget that the "distance" won't work 
for objects wider, or taller, than the distance... Sigh...


Post a reply to this message

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