POV-Ray : Newsgroups : povray.off-topic : Bounding circle intersection : Re: Bounding circle intersection Server Time
4 Sep 2024 23:23:21 EDT (-0400)
  Re: Bounding circle intersection  
From: Invisible
Date: 11 Dec 2009 10:44:12
Message: <4b2268cc@news.povray.org>
> No need to make AB unital for the cross product method (saves a square 
> root and divide).

Actually, thinking about it, you wouldn't need to for the dot product 
either. I should have seen that...

>> X = (1,0)
>> X . V - k = (1,0) . (-1,0) - 0 = -1
> 
> X cross AB = (1,0) x (0,1) = (1)(1) - (0)(0) = 1
> (saves one subtraction compared to your method)

Oh, I see. You're only computing the Z ordinate of the cross product? 
Well, I guess that could be quicker, yes...


Post a reply to this message

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