Recent content by eniven

  1. E

    How Do You Determine if a Line Segment Intersects a Square in 2D Geometry?

    Hmm, that's clever, but what about the case where neither end point of the line are inside the square yet the line crosses the square?
  2. E

    How Do You Determine if a Line Segment Intersects a Square in 2D Geometry?

    Thanks guys! I feel like a bit of a doofus for not thinking of that! :redface:
  3. E

    How Do You Determine if a Line Segment Intersects a Square in 2D Geometry?

    I am trying to determine whether or not any part of a line segment is located within a square box. I have the coordinates of the line segment end points and the corners of the square box. This problem is easy for the case where one or both end points are located in the box, but I don't know...
Back
Top