Grid points inscribed in a triangle
Shows the points of a grid inscribed in a given triangle.
Demo
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.