The equilateral_triangle command takes two arguments and an optional third. The two mandatory arguments are points A and B.
equilateral_triangle returns and draws the equilateral triangle
ABC, where AB to AC is counterclockwise.
Input:
Output:
The optional argument needs to be a variable name
which is assigned to vertex C.
Input:
Output:
Input:
Output: