11 lines
217 B
Java
11 lines
217 B
Java
package engine.object;
|
|
|
|
import java.util.Comparator;
|
|
|
|
public class SortZ implements Comparator<ObjectGl>
|
|
{
|
|
public int compare(ObjectGl a, ObjectGl b)
|
|
{
|
|
return (int) (a.getZPos() - b.getZPos());
|
|
}
|
|
} |