POV-Ray : Newsgroups : povray.general : POV-related math question : Re: POV-related math question Server Time
5 Aug 2024 10:26:47 EDT (-0400)
  Re: POV-related math question  
From: Shay
Date: 2 Oct 2002 09:38:46
Message: <3d9af6e6@news.povray.org>
Dan Byers <nomail@nomail> wrote in message
news:web.3d9a3acd610548727c10c2df0@news.povray.org...

Here's a no math (on your part) answer:

#local R1 = [one end of red line];
#local R2 = [other end of red line];
#local P1 = [one end of purple line];
#local P2 = [other end of purple line];

#local RedVector = R2 - R1;
#local PurpleVector = P2 - P1;

#local Target = plane {vcross(<0,0,1>, RedVector), R1);
#local Intersection = trace (Target, P1, PurpleVector);

 // trace works *so* fast that this might be as quick
 // as any answer
 // untested


Post a reply to this message

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