Shows the points of a grid inscribed in a given triangle.
Resize the window to update the triangle geometry and the inscribed points.
Click on the visualization to generate a new random triangle. Every four clicks, you get a triangle with a horizontal side (shown in green), useful to test the function generating the inscribed points.