igeo

## Class IDistanceComparator

- java.lang.Object
- - igeo.IDistanceComparator

- All Implemented Interfaces:
    IComparator<IVec>

      public class IDistanceComparator
      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

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `IVec` | `center`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `IDistanceComparator()`
    `IDistanceComparator(IVec center)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

    - #### center

          public IVec center

  - ### Constructor Detail

    - #### IDistanceComparator

          public IDistanceComparator()

    - #### IDistanceComparator

          public IDistanceComparator(IVec center)

  - ### Method Detail

    - #### compare

          public int compare(IVec v1,
                             IVec v2)

      Specified by:
        `compare` in interface `IComparator<IVec>`