Recent

Author Topic: Line Segment Intersection  (Read 5075 times)

JasonLugg

  • Jr. Member
  • **
  • Posts: 67
Line Segment Intersection
« on: May 06, 2012, 05:00:23 pm »
Hi All

Could someone please help me with a line intersection function \ procedure:

Given Line Segment 1 Start (TPoint) L1Start.x & L1Start.y, End (TPoint) L1End.x & L1End.y

Given Line Segment 2 Start (TPoint) L2Start.x & L2Start.y, End (TPoint) L2End.x & L2End.y

With the intersection point store in Intersect (TPoint).x and .y.

My math is not good enough and I am going in circles....funny seeing that I am drawing straight lines ha ha

Jason

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: Line Segment Intersection
« Reply #1 on: May 06, 2012, 05:07:39 pm »
There are many discussions of this found using Google.
http://en.wikipedia.org/wiki/Line_segment_intersection
I especially like: http://en.wikipedia.org/wiki/Line-line_intersection, but that may be a bit rigorous for most needs.

eny

  • Hero Member
  • *****
  • Posts: 1665
All posts based on: Win11; stable Lazarus 4_4  (x64) 2026-02-12 (unless specified otherwise...)

 

TinyPortal © 2005-2018