Minimal Square Containing Triangle PQR

Author:
String_1
This applet shows how finding the minimal square containing a given triangle can be reduced to placing the longest and second side as vectors u and v from the origin and calculating points of intersections of four difference functions choosing the best solution among them.