Calculating the Intersection Point of 2 Lines

3

Attached Files

The following files have been attached to this tutorial:

.capx

intersecting-lines.capx

Download now 6.58 KB

Stats

2,123 visits, 3,232 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.

Published on 10 Dec, 2013. Last updated 19 Feb, 2019

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

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