lineSegmentXYUVTransverseIntersectionUnbounded MethodStatic

  • (ax0,ay0) to (ax0+ux,ay0+uy) are line A.
  • (bx0,by0) to (bx0+vx,by0+vy) are lineB.
  • Return true if the lines have a simple intersection.
  • Return the fractional (not xy) coordinates in result.x, result.y

lineSegmentXYUVTransverseIntersectionUnbounded(ax0: number, ay0: number, ux: number, uy: number, bx0: number, by0: number, vx: number, vy: number, result: Vector2d): boolean

Parameter Type Description
ax0 number  
ay0 number  
ux number  
uy number  
bx0 number  
by0 number  
vx number  
vy number  
result Vector2d point 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: 11 June, 2024