I have the following for a rectangle.. x1,y1,width and height
How can I find x2 and y2 having the values of above?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Draw
(x1, y1)on a piece of paper with a coordinate system and then draw a rectangle of dimensionswidth x heighton the same paper.If you make
width = 0, you can say thatx1 = x2. If the widths gets any larger, thenx2 > x1. You can say thatx2 = x1 + width.The height works the same way, so
y2 = y1 + height.I assumed that
(x1, y1)is the bottom-left corner’s coordinate.