Skip to content

Commit

Permalink
working on intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
bgpoythress committed May 19, 2018
1 parent a64b566 commit 0e8bcab
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/IntersectionMath.js
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 0e8bcab

Please sign in to comment.