From 0e8bcab6f570fc92b34e6776d7e020fe230a5ebb Mon Sep 17 00:00:00 2001 From: Brandon Poythress Date: Sat, 19 May 2018 07:50:01 -0400 Subject: [PATCH] working on intersection --- lib/IntersectionMath.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/IntersectionMath.js b/lib/IntersectionMath.js index e69de29..8726f7b 100644 --- a/lib/IntersectionMath.js +++ b/lib/IntersectionMath.js @@ -0,0 +1,13 @@ +//find the intersection of a vector and a plane +//pLX, pLY, pLZ are the components of the home point of the vector. +//this will normally be the eye point but not necessarily. +//u is a constant +//dX, dY, dZ are the unit vector components of the line +//pPX, pPY, pPZ are the components of the home point of the trianglular plane +//nX, nY, nZ are the unit vector components of the triangle +function getIntersection(pLX, pLY, pLZ, dX, dY, dZ, pPX, pPY, pPZ, nX, nY, nZ){ + var crossProduct = crossProduct(dX, dY, dZ, nX, nY, nZ); + + var point = []; + return point; +} \ No newline at end of file