org.proteinshader.structure.sort
Class DrawableSorter
java.lang.Object
org.proteinshader.structure.sort.DrawableSorter
public class DrawableSorter
- extends Object
Knows how to sort an array of Drawables by their distance from the
camera.
Method Summary |
void |
ascendingMergeSort(Drawable[] d)
Sorts an array of Drawable objects in ascending order based on
camera distance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrawableSorter
public DrawableSorter()
- Constructs a DrawableSorter.
ascendingMergeSort
public void ascendingMergeSort(Drawable[] d)
- Sorts an array of Drawable objects in ascending order based on
camera distance.
- Parameters:
d
- the array of Drawables to sort.
Copyright © 2007-2008