|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.piece.PolygonScanline.PolyEdge
protected static class PolygonScanline.PolyEdge
Polygon edge.
Field Summary | |
---|---|
int |
count
Number of hlines to draw. |
double |
dx
X difference between two adjacent hlines. |
boolean |
ori
Edge orientation. |
double |
x
X-coordinate of the edge-hline intersection. |
int |
y0
Starting Y-coordinate. |
Constructor Summary | |
---|---|
PolygonScanline.PolyEdge(double x1,
double y1,
double x2,
double y2)
|
Method Summary | |
---|---|
int |
compareTo(PolygonScanline.PolyEdge o)
Natural ordering: [ y0, x ]. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int y0
public double x
public double dx
public int count
public boolean ori
Constructor Detail |
---|
public PolygonScanline.PolyEdge(double x1, double y1, double x2, double y2)
Method Detail |
---|
public int compareTo(PolygonScanline.PolyEdge o)
compareTo
in interface Comparable<PolygonScanline.PolyEdge>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |