igeo
Class IDirectionalComparator

java.lang.Object
  extended by igeo.IDirectionalComparator
All Implemented Interfaces:
IComparator<IVec>

public class IDirectionalComparator
extends java.lang.Object
implements IComparator<IVec>

A class to define order of IVec in a specified direction to be used in sorting with ISort.

Version:
0.7.0.0;
Author:
Satoru Sugihara
See Also:
ISort

Field Summary
 IVec dir
           
 
Constructor Summary
IDirectionalComparator(IVec dir)
           
 
Method Summary
 int compare(IVec v1, IVec v2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dir

public IVec dir
Constructor Detail

IDirectionalComparator

public IDirectionalComparator(IVec dir)
Method Detail

compare

public int compare(IVec v1,
                   IVec v2)
Specified by:
compare in interface IComparator<IVec>