Calculate the distance on a document from point to point in relative units [closed]
Closed 18 hours ago.
Can three given coordinates be points of a rectangle
I am currently learning how to code in Python and I came across this task and I am trying to solve it. But I think I got a mistake somewhere and I was wondering can maybe someone help me with it. The task is to write a code that will:
Import four 2D coordinates (A, B, C and X) from a text file
Check can A, B, C be points of a rectangle
Check if X is inside the ABC rectangle
Calculate the diagonal of the rectangle.