Yes, of course, Pythagoras theorem :) In fact, if our quadrilateral is a rectangle… then opposite sides are the same length, and the diagonals are also of the same length… and so Ptolemy’s theorem ...
To find E within ΔABC such that AE sin BEC + BE sin CEA + CE sin AEB shall be a maximum.