Hi to everyone.(adsbygoogle = window.adsbygoogle || []).push({});

I'm developing a puzzle game which involves some concepts of geometry.

Suppose you have a rectangle formed by points A, B, C and D. Now, I add points X1 (lies on line AB), X2 (inside the rectangle) and X3 (lies on line AC).

I'd like the output to be the two rectangles resulting from these added points.

I don't know how to do it nor how to ask it properly. Any guidance will be very helpful.

Thanks in advance.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Cutting a rectangle with straight lines

**Physics Forums | Science Articles, Homework Help, Discussion**