[Bug 50715] New: Inaccurate calculation of endpoints of a rotated rectangle