Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Maybe I'm misinterpreting the IsAlmostEqualTo method. I want to establish if two points are within 4 inchs of each other (0.3333 feet). I though the following code would do that:
XYZ a = new XYZ(41.7, -76, 0); XYZ b = new XYZ(4.7, -76, 0); bool almostEqual = a.IsAlmostEqualTo(b, 0.333);
But even though in this example the two points are 37 feet apart IsAlmostEqualTo returns true. Am I misunderstanding the tolerance part of the method?
Graham Cook
Solved! Go to Solution.