Jump to content

Find intersection in 2 lines


proyb2
 Share

Recommended Posts

Using bitmapData to draw 2 lines, how do I get the intersection x and y point?

bmd = game.add.bitmapData(100,100);bmd.ctx.lineWidth="1";bmd.ctx.strokeStyle="red";bmd.ctx.moveTo(0, 0);bmd.ctx.lineTo(100, 80);bmd.ctx.moveTo(100, 0);bmd.ctx.lineTo(10, 100);

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...