xxMANxx Posted November 6, 2019 Share Posted November 6, 2019 (edited) how to find out that the rectangles collide knowing the coordinates of all their vertices? Edited November 6, 2019 by xxMANxx Link to comment
JeViCo Posted November 12, 2019 Share Posted November 12, 2019 @xxMANxx, you probably need this function Math.isPointInPolygon. You should iterate through each point of one rectangle and check if one of them is inside the other one Link to comment
Moderators IIYAMA Posted November 12, 2019 Moderators Share Posted November 12, 2019 + do that per rectangle. Because you do not know which one is in which one. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now