public static class Line.PointIterator extends Object implements Iterator<Point>
ImageProcessor.getLine(double, double, double, double)
.
Improvements are (a) that the endpoint is drawn too and (b) every line
point is visited only once, duplicates are skipped.
Author: Wilhelm Burger (04/2017)Constructor and Description |
---|
PointIterator(double x1,
double y1,
double x2,
double y2) |
PointIterator(Line line) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Point |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public PointIterator(Line line)
public PointIterator(double x1, double y1, double x2, double y2)
Copyright © 1997–2019 NIH. All rights reserved.