Package toxi.sim.dla
Class BottomUpOrder
java.lang.Object
toxi.sim.dla.BottomUpOrder
- All Implemented Interfaces:
Comparator<Line3D>
This comparator sorts segments based on their midpoint's Y position. Positive
Y axis is assumed the default up direction, but can be changed via the
constructor.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
isFlipped
public boolean isFlipped
-
-
Constructor Details
-
BottomUpOrder
public BottomUpOrder(boolean isFlipped)
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Line3D>
-