- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have some code that tries to find the most left and most bottom point in a drawing to set up origins for ordinate sets. The code favors things to the bottom left. So for example if I am looking for the lowest X value and I find 2 that are the same, I take the one with the lower Y value. however my code sometimes doesn't pick the correct point. While i was troubleshooting I found that even though the line should be exactly horizontal, that some of the points are 0.000000000000001 lower than the others. It is also technically outside of the bottom of the drawing view. This has made me have to put fuzzy logic in my code, which I don't like very much. Fuzzy logic makes the code more imprecise and can have rounding errors. Is there any way to remove this error or any way to handle it that doesn't involve me using Round() on every X and Y value?
Solved! Go to Solution.