pointInList method
Implementation
bool pointInList(Coordinate testPoint, List<Coordinate> pointList) {
Coordinate p;
for (int t = pointList.length - 1; t >= 0; t--) {
p = pointList[t];
// nan test; x!=x iff x is nan
if ((testPoint.x == p.x) &&
(testPoint.y == p.y) &&
((testPoint.getZ() == p.getZ()) || testPoint.getZ().isNaN)) {
return true;
}
}
return false;
}