POV-Ray : Newsgroups : povray.general : 3d math - line intersecting a plane : Re: 3d math - line intersecting a plane Server Time
19 Nov 2024 03:40:44 EST (-0500)
  Re: 3d math - line intersecting a plane  
From: Leroy Whetstone
Date: 15 May 2002 00:02:21
Message: <3CE1F86D.29674215@joplin.com>
Did ya make any macros about line segment intersecting?

Tor Olav Kristensen wrote:

> Ben Chambers wrote:
> >
> > I know I can solve this one, but I was wondering if anyone knows of any
> > quick / easy methods that might not be intuitive to me.
>
> Here is an extract from one of many such intersection macros I once made:
>
> #declare pIsect = pLine + vLine*vdot(pPlane - pLine, vPlane)/vdot(vLine, vPlane);
>
> pLine is any point on the line
> vLine is any vector parallel to the line
>
> pPlane is any point on the plane
> vPlane is any vector that is normal to the plane
>
> Tor Olav

--
Have Fun!


Post a reply to this message

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