Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## toxi.geom.mesh.subdiv
Class EdgeLengthComparator

    java.lang.Object
      toxi.geom.mesh.subdiv.EdgeLengthComparator

All Implemented Interfaces:
  java.util.Comparator<WingedEdge>

    public class EdgeLengthComparator

extends java.lang.Object
implements java.util.Comparator<WingedEdge>

Comparator used by `SubdivisionStrategy.getEdgeOrdering()` to define the order of edges to be subdivided. This one prioritizes longer edges.

Constructor Summary
`EdgeLengthComparator()`

Method Summary
`int` | `compare(WingedEdge e1, WingedEdge e2)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface java.util.Comparator
`equals`

Constructor Detail

### EdgeLengthComparator

    public EdgeLengthComparator()

Method Detail

### compare

    public int compare(WingedEdge e1,
                       WingedEdge e2)

  Specified by:
    `compare` in interface `java.util.Comparator<WingedEdge>`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD