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
Param | Type |
---|---|
out | Array.<number> | Float32Array | Float64Array |
out_offset | number |
origin_a_x | number |
origin_a_y | number |
direction_a_x | number |
direction_a_y | number |
origin_b_x | number |
origin_b_y | number |
direction_b_x | number |
direction_b_y | number |