https://book.etudes.ru/articles/trapezium/@2/