Calculating the Intersection Point of 2 Lines

3
  • 15 favourites

Attached Files

The following files have been attached to this tutorial:

.capx

intersecting-lines.capx

Download now 6.58 KB

Stats

1,933 visits, 2,989 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

This is an example of how to calculate the X and Y position of where the angle of 2 objects intersect. This is useful when you have objects representing lines, and you must calculate their intersection point.

Demo

Please note: The capx contains 2 events that do the same thing. The 1st event calculates the intersection point with a single action. The 2nd event (which is disabled by default) does the same thing, but breaks the math out so it's easier to read/comprehend.

.CAPX

intersecting-lines.capx

Download now 6.58 KB
  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!