Lineintersect

From EDukeWiki
Revision as of 23:03, 9 August 2020 by Rob Anybody (talk | contribs) (second triplet is a point, not a vector)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.