com.jmex.font3d.math
Class Triangulator.SweepLineComparer

java.lang.Object
  extended by com.jmex.font3d.math.Triangulator.SweepLineComparer
All Implemented Interfaces:
java.util.Comparator<TriangulationEdge>
Enclosing class:
Triangulator

 class Triangulator.SweepLineComparer
extends java.lang.Object
implements java.util.Comparator<TriangulationEdge>

Sort the edges according to their X-coordinate from the y coordinate of the sweepline.

Author:
emanuel

Field Summary
(package private)  TriangulationVertex currentvertex
           
 
Constructor Summary
Triangulator.SweepLineComparer()
           
 
Method Summary
 int compare(TriangulationEdge edge1, TriangulationEdge edge2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

currentvertex

TriangulationVertex currentvertex
Constructor Detail

Triangulator.SweepLineComparer

Triangulator.SweepLineComparer()
Method Detail

compare

public int compare(TriangulationEdge edge1,
                   TriangulationEdge edge2)
Specified by:
compare in interface java.util.Comparator<TriangulationEdge>