0

I've been looking how to get the intersection point of two lines in android studio, I need to create and draw on the screen, polygons with those points of intersection to get their area. I've tried with android studio built in Canvas but it doesn't seem to get the intersections of any other object but rectangles, is there any way i can do this?

Jumo
  • 1
  • 1
  • 1
    If you have the start/end points of the lines you can solve this problem with a mathematical equation. Have you already tried this? https://stackoverflow.com/a/31506840/6691953 – Uchendu Mar 29 '20 at 07:27
  • that's a great idea, but i need to draw them on the screen, any way i could do both things? – Jumo Mar 29 '20 at 22:59
  • Sure. Check out this post => https://stackoverflow.com/questions/3616676/how-to-draw-a-line-in-android :) – Uchendu Mar 30 '20 at 08:22

0 Answers0