I was referring to the line:
if( x>=x1 && x<=x2 )
/* && (point_in_linesegment(x,y1,xstart, ystart, xend, yend) == 1) ) */
{ printf("T\n");
return;
}
and similar. I think you need the commented out part in them.
e.g.
1 1 10 10 20 1 80 80
F
I agree you need to compare 2 floats, but it's *how ...
Search found 18 matches
- Wed Jul 10, 2002 4:15 pm
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33381
- Wed Jul 10, 2002 1:46 pm
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33381
- Wed Jul 10, 2002 2:21 am
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33381
- Tue Jul 09, 2002 2:01 pm
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33381
- Mon Jul 08, 2002 11:47 pm
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33381
- Mon Jul 08, 2002 2:17 pm
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33381
- Sun Jul 07, 2002 10:53 pm
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33381
- Sun Jul 07, 2002 12:59 am
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33381
- Fri Jul 05, 2002 2:59 pm
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33381
- Wed Jul 03, 2002 3:27 am
- Forum: Volume 1 (100-199)
- Topic: 168 - Theseus and the Minotaur
- Replies: 64
- Views: 15100
- Tue Jul 02, 2002 2:09 pm
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33381
- Tue Jun 25, 2002 1:06 am
- Forum: Volume 1 (100-199)
- Topic: 168 - Theseus and the Minotaur
- Replies: 64
- Views: 15100
Hmm. Well my tests indicate that there is always a path from Theseus to the Minotaur, but sometimes not from the Minotaur to Theseus. Which is still inconsistent with the description of the problem, but you could carry on from that point with Theseus giving chase (which still gives WA, so it must be ...
- Fri Jun 21, 2002 7:23 pm
- Forum: Volume 1 (100-199)
- Topic: 168 - Theseus and the Minotaur
- Replies: 64
- Views: 15100
- Tue Jun 18, 2002 11:59 pm
- Forum: Volume 1 (100-199)
- Topic: 136 - Ugly Numbers
- Replies: 156
- Views: 41693
- Wed Jun 12, 2002 8:51 pm
- Forum: Volume 1 (100-199)
- Topic: 178 - Shuffling Patience
- Replies: 15
- Views: 5147