We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 838b040 commit fea8731Copy full SHA for fea8731
.gitignore
@@ -1,3 +1,6 @@
1
+# Folders
2
+.vs/
3
+
4
# Compiled Object files
5
*.slo
6
*.lo
curve/Polygon2d.cs
@@ -333,8 +333,20 @@ public bool Contains(Polygon2d o) {
333
return true;
334
}
335
336
+ public bool Contains(Segment2d o)
337
+ {
338
+ if (Contains(o.P0) == false || Contains(o.P1) == false)
339
+ return false;
340
341
+ foreach (Segment2d seg in SegmentItr())
342
343
+ if (seg.Intersects(o))
344
345
+ }
346
+ return true;
347
348
- public bool Intersects(Polygon2d o) {
349
+ public bool Intersects(Polygon2d o) {
350
if ( ! this.GetBounds().Intersects( o.GetBounds() ) )
351
return false;
352
0 commit comments