Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## igeo
Class IDirectionalComparator

    java.lang.Object
      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.

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>`

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD