Skip to main content

intersect_ray_2d

intersect_ray_2d(out, out_offset, origin_a_x, origin_a_y, direction_a_x, direction_a_y, origin_b_x, origin_b_y, direction_b_x, direction_b_y) ⇒ boolean

NOTE: that direction must not be normalized for correct results and instead derived from line length

Kind: global function
Returns: boolean - false if lines are coplanar or intersect on the wrong side

ParamType
outArray.<number> | Float32Array | Float64Array
out_offsetnumber
origin_a_xnumber
origin_a_ynumber
direction_a_xnumber
direction_a_ynumber
origin_b_xnumber
origin_b_ynumber
direction_b_xnumber
direction_b_ynumber