line2plane | R Documentation |
get intersection between a line and a plane
line2plane(ptLine, ptDir, planePt, planeNorm)
ptLine |
vector of length 3: point on line |
ptDir |
vector of length 3: direction vector of line |
planePt |
vector of length 3: point on plane |
planeNorm |
vector of length 3: plane normal vector |
hit point
in case you only have three points on a plane (named pt1, pt2, pt3
you can get the plane's normal by calling crossProduct(pt1-pt2,pt1-pt3)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.