01 How does the equilateral triangle work?

This function calculates two equilateral triangles from the distance and direction of two given coordinates and thus outputs two coordinates as a result.