Answer the question
In order to leave comments, you need to log in
How to add python code?
I was making code and I had an idea, but I don't know how to implement it. Having a rectangle on the coordinate plane, whose one corner is at the origin, and the opposite, lying on the same diagonal, is given by the coordinates (x, y). Write a program that, given the coordinates of a point (x, y), determines whether a point belongs to this rectangle. Is it possible to somehow implement this. (I made code that works with shapes)
Answer the question
In order to leave comments, you need to log in
The problem has no solution, since the rectangle is not uniquely determined by the indicated two points.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question