# Calculate where lines intersect

**URL:** <https://forum.kirupa.com/t/calculate-where-lines-intersect/85253>\
**Category:** Uncategorized\
**Created:** [April 3, 2005, 5:42am UTC](https://forum.kirupa.com/t/calculate-where-lines-intersect/85253 "2005-04-03T05:42:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpelland](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mpelland](https://forum.kirupa.com/u/mpelland)\
**Post date:** [April 3, 2005, 5:42am UTC](https://forum.kirupa.com/t/calculate-where-lines-intersect/85253/1 "2005-04-03T05:42:25Z")

</div>

hey,  
I have been playing around with the fmx2004 drawing api. I am drawing a complex shape and all is well but I would like to make the lines smoother. I haven’t been able to find a smoothing function but I am working on a custom solution using the curveTo method.

I have to be able to calculate where two lines intersect. i have their slopes and two points along each line, so now all I need to do is calculate their intersection. I can do it on paper but not in flash, can anyone help me?

thanks
