cz.cuni.jagrlib.piece
Class PolygonScanline.PolyEdge

java.lang.Object
  extended by cz.cuni.jagrlib.piece.PolygonScanline.PolyEdge
All Implemented Interfaces:
Comparable<PolygonScanline.PolyEdge>
Enclosing class:
PolygonScanline

protected static class PolygonScanline.PolyEdge
extends Object
implements Comparable<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

y0

public int y0
Starting Y-coordinate.


x

public double x
X-coordinate of the edge-hline intersection.


dx

public double dx
X difference between two adjacent hlines.


count

public int count
Number of hlines to draw.


ori

public boolean ori
Edge orientation.

Constructor Detail

PolygonScanline.PolyEdge

public PolygonScanline.PolyEdge(double x1,
                                double y1,
                                double x2,
                                double y2)
Method Detail

compareTo

public int compareTo(PolygonScanline.PolyEdge o)
Natural ordering: [ y0, x ].

Specified by:
compareTo in interface Comparable<PolygonScanline.PolyEdge>