Representation and Intersection of Lines and Boxes
Channel:
Subscribers:
2,650
Published on ● Video Link: https://www.youtube.com/watch?v=6UtBe9hYHn0
AABBs are pretty easy to work with, and there's some simple algorithms we went over today that can tell you:
1) If one box overlaps another box
2) If one box is inside another box
3) If a point is inside a box
4) If a line intersects a box
4.1) ...and which point of intersection is closer
There's different ways you can represent a box and a line in a class, and we talked about some of those alternatives today. They each have their pros and cons.