POV-Ray : Newsgroups : povray.general : Math problem : Re: Math problem Server Time
2 Aug 2024 04:24:36 EDT (-0400)
  Re: Math problem  
From: Mike Williams
Date: 23 Jan 2005 02:44:47
Message: <XyEGTAAcW18BFwPl@econym.demon.co.uk>
Wasn't it Shark who wrote:
>In POVray, how do you calculate the intersection of two lines given a point
>on each line and their vectors?
>Is there a handy include file somewhere with a macro that does this?

You could declare (but not render) an extremely thin cylinder around one
of the lines and then use trace().

In most cases there would be no intersection, so do remember to check
for failures.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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