Package toxi.sim.dla

Class BottomUpOrder

java.lang.Object
toxi.sim.dla.BottomUpOrder
All Implemented Interfaces:
Comparator<Line3D>

public class BottomUpOrder extends Object implements 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 Details

    • isFlipped

      public boolean isFlipped
  • Constructor Details

    • BottomUpOrder

      public BottomUpOrder(boolean isFlipped)
  • Method Details