-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a64b566
commit 0e8bcab
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |