org.proteinshader.structure.sort
Class DrawableSorter

java.lang.Object
  extended by org.proteinshader.structure.sort.DrawableSorter

public class DrawableSorter
extends Object

Knows how to sort an array of Drawables by their distance from the camera.


Constructor Summary
DrawableSorter()
          Constructs a DrawableSorter.
 
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
 

Constructor Detail

DrawableSorter

public DrawableSorter()
Constructs a DrawableSorter.

Method Detail

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