Recent content by marklee42

  1. M

    Need help testing vector separation.

    Testing for distance and comparing to the length of the second vector makes sense. Turns out there's already a method that takes care of calculating the distance, so I shouldn't have any problems. Thanks for the help!
  2. M

    Need help testing vector separation.

    My diagram was ambiguous on the point labels, here's what I meant: http://upurs.us/image/15271.jpeg I also drew the line I think Bill Simpson was referring to. My guess is that I just need to check these lines for intersection. If so, I have further questions: a)...
  3. M

    Need help testing vector separation.

    I'm writing code to check if polygons intersect, but I've ran into a problem. I have two "vectors." Each has an origin and x and y components. They are facing towards each other. I need to write code that determines if there's a perpendicular axis that separates them. Here's a picture of what...
Back
Top