ray3dXYZUVWClosestApproachUnbounded MethodStatic

Return true if the given rays have closest approach (go by each other) in 3d

ray3dXYZUVWClosestApproachUnbounded(ax: number, ay: number, az: number, au: number, av: number, aw: number, bx: number, by: number, bz: number, bu: number, bv: number, bw: number, result: Vector2d): boolean

Parameter Type Description
ax number x-coordinate of the origin of the first ray
ay number y-coordinate of the origin of the first ray
az number z-coordinate of the origin of the first ray
au number x-coordinate of the direction vector of the first ray
av number y-coordinate of the direction vector of the first ray
aw number z-coordinate of the direction vector of the first ray
bx number x-coordinate of the origin of the second ray
by number y-coordinate of the origin of the second ray
bz number z-coordinate of the origin of the second ray
bu number x-coordinate of the direction vector of the second ray
bv number y-coordinate of the direction vector of the second ray
bw number z-coordinate of the direction vector of the second ray
result Vector2d vector to receive fractional coordinates of intersection: result.x is fraction on line A, result.y is fraction on line B.

Returns - boolean

Defined in

Last Updated: 07 June, 2025