All Four Points Of Rectangle

I’ve A Rectangle Of Shape Attached in Pictures (Remember it’s Not Like A Normal Rectangle), I’ve All Four Points Of Rectangle

Listed As (Ax,Ay), (Bx,By), (Cx,Cy) And (Dx,Dy)

There’s Also A Line Which ExplainI have Having End Points As (Px,Py) And (Qx,Qy)

Now I Want A Function in C# That Will Tell Me If The Line Intersects With Rectangle Or Not
Remember, Must See The Shape Of Rectangle
If Anything is Unclear, Must Ask Before Proceeding

Note: Must Use, Same Name For Points, Like Point A Should Be Represented With (Ax,Ay) please Don’t Use Any Other Name To Represent This Point

 

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *