Is there any mistake here? I expect it returns True
but the result is False
.
I have been checking but couldn't find the mistake.
myline = Line[{{-0.9999775897051473`, 1.`}, {-0.9971344923360166`,
1.`}, {-0.9837552105989325`, 1.`}, {-0.9703759288618484`,
1.`}, {-0.9436173653876803`, 1.`}, {-0.9168588019135122`,
1.`}, {-0.8117733541966873`, 1.`}, {-0.7066879064798623`,
1.`}, {-0.5106187050385604`, 1.`}, {-0.2980389526916474`,
1.`}, {-0.19879992351436487`, 1.`}, {-0.09956089433708235`,
1.`}, {-0.05091578283836483`, 1.`}, {-0.0022706713396473052`,
1.`}, {-0.00014244771157841357`, 1.`}}];
myregion =
Line[{{-5, 0}, {5, 0}, {5, 6}, {1, 1}, {0, 1}, {-5, 6}, {-5, 0}}];
RegionWithin[myregion, myline]
Here is the image showing the line and region.