The formation of a triangle inside a triangle

Demonstrates the method of obtaining the similar triangle when the location of the vertices of the triangle and the location of the point P can be changed. There is also a ruler that allows the division ratio to be changed. By dragging the points D, E, F along the sides AC, AB, BC respectively and tracing the points M1, M2, M3, the sides of the inner triangle that is similar to the original triangle ABC are formed.