Advertisement

2D Line Intersection Test?

Started by January 06, 2003 02:03 AM
1 comment, last by NeXius 22 years, 1 month ago
Hi. I''m making a 2D game that involves finding the intersection point of two line segments... These line segments are always intersecting, so I can basically just treat them as lines. I know how to do it when given formulas for lines. I can just solve for one of the variables (x/y), add the equations up, and substitute for the solved variable.... You know? But how would I apply this theory to my game? Or does anyone know another method? Thanks

"If you gaze long into an abyss, the abyss will gaze back into you." - Friedrich Nietzsche (1844-1900) (my site)
MSN: stupidbackup@hotmail.com (not actual e-mail)ICQ: 26469254(my site)
Try the following link

http://www.faqs.org/faqs/graphics/algorithms-faq/

Subject 1.03: How do I find intersections of 2 2D line segments? should be what you want.

Kidd
Advertisement
Perfect thanks!
MSN: stupidbackup@hotmail.com (not actual e-mail)ICQ: 26469254(my site)

This topic is closed to new replies.

Advertisement