Problem:
Given a triangle described by coordinates of its tops/tips/vertices, fill it with triangles.
Rules:
triangles inside it should have space between each other (I think that I will calculate function y=k*x+b for one side of triangle and increase\decrease b to 10-20 or make space between tops (one top for triangle)) something like this:
But I want to create many variants of "filling".
Can you tell me if there is any kind of function to determine the position of inside triangles (center and angle of rotation or vertices) (relative to their centers))?
Or what theorems\functions can be looked for finding this solution?
P.S. I plan to use JS\Canvas for calculating this dynamically.