An open API service indexing awesome lists of open source software.

https://github.com/mindrones/inscribed-grid-points

Show points of a grid inscribed in a given triangle
https://github.com/mindrones/inscribed-grid-points

Last synced: over 1 year ago
JSON representation

Show points of a grid inscribed in a given triangle

Awesome Lists containing this project

README

          

# Grid points inscribed in a triangle

Shows the points of a grid inscribed in a given triangle.

## [Demo](https://mindrones.github.io/inscribed-grid-points)

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.

![Triangle](https://raw.githubusercontent.com/mindrones/inscribed-grid-points/master/doc/inscribed-grid-points_triangle.png)