|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.sim.dla.BottomUpOrder
public class BottomUpOrder
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 | |
---|---|
boolean |
isFlipped
|
Constructor Summary | |
---|---|
BottomUpOrder(boolean isFlipped)
|
Method Summary | |
---|---|
int |
compare(toxi.geom.Line3D a,
toxi.geom.Line3D b)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Field Detail |
---|
public boolean isFlipped
Constructor Detail |
---|
public BottomUpOrder(boolean isFlipped)
Method Detail |
---|
public int compare(toxi.geom.Line3D a, toxi.geom.Line3D b)
compare
in interface java.util.Comparator<toxi.geom.Line3D>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |