Difference between revisions of "Lineintersect"

From EDukeWiki
Jump to navigation Jump to search
(Created page with "'''lineintersect''' <x> <y> <z> <vx> <vy> <vz> <x1> <y1> <x2> <y2> <intx> <inty> <intz> <ret> Projects a line from point <x> <y> <z> along vector <vx> <vy> <vz>, and dete...")
 
(second triplet is a point, not a vector)
 
Line 1: Line 1:
'''lineintersect''' <x> <y> <z>  <vx> <vy> <vz>  <x1> <y1>  <x2> <y2>  <intx> <inty> <intz> <ret>
'''lineintersect''' <ox> <oy> <oz>  <dx> <dy> <dz>  <x1> <y1>  <x2> <y2>  <intx> <inty> <intz> <ret>


Projects a line from point <x> <y> <z> along vector <vx> <vy> <vz>,
Determines where a line defined by origin point <ox> <oy> <oz>
and determines where it intersects the vertical plane
and destination point <dx> <dy> <dz>
defined by the points <x1> <y1> and <x2> <y2>.
intersects the vertical plane defined by the points <x1> <y1> and <x2> <y2>.


The point of intersection, if any, is returned as <intx> <inty> <intz>,
The point of intersection, if any, is returned as <intx> <inty> <intz>,
with <ret> holding a value of 1 if an intersection exists and 0 otherwise.
with <ret> holding a value of 1 if an intersection exists and 0 otherwise.

Latest revision as of 00:03, 10 August 2020

lineintersect <ox> <oy> <oz> <dx> <dy> <dz> <x1> <y1> <x2> <y2> <intx> <inty> <intz> <ret>

Determines where a line defined by origin point <ox> <oy> <oz> and destination point <dx> <dy> <dz> intersects the vertical plane defined by the points <x1> <y1> and <x2> <y2>.

The point of intersection, if any, is returned as <intx> <inty> <intz>, with <ret> holding a value of 1 if an intersection exists and 0 otherwise.