Yields the intersecting points from a to b against a set of lines.
a
b
const a = { x: 0, y: 0 };const b = { x: 640, y: 320 };for (const point of G.Rays.intersections(a,b, lines)) { // Do something with { x,, y } } Copy
const a = { x: 0, y: 0 };const b = { x: 640, y: 320 };for (const point of G.Rays.intersections(a,b, lines)) { // Do something with { x,, y } }
Results are a RaycastHit, consisting of x,y for coordinates, d for relative distance of point from a, and line which is the index of the line.
x,y
d
line
Yields the intersecting points from
atobagainst a set of lines.Results are a RaycastHit, consisting of
x,yfor coordinates,dfor relative distance of point froma, andlinewhich is the index of the line.