lineIntersect edit page

intersection of lines and planes

Syntax

v = lineIntersect(v1,v2,n,d)

Input

v1 starting points of the lines
v2 final point of the lines
n normal direction of the planes
d distances of the plane, i.e. <x,n>=d

Output

v intersection points vector3d