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

## igeo
Class IRadialComparator

    java.lang.Object
      igeo.IRadialComparator

All Implemented Interfaces:
  IComparator<IVec>

    public class IRadialComparator

extends java.lang.Object
implements IComparator<IVec>

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

Author:
  Satoru Sugihara
See Also:
  `ISort`

Field Summary
`IVec` | `center`
`IVec` | `normal`
`IVec` | `startDir`

Constructor Summary
`IRadialComparator()`
`IRadialComparator(IVec center)`
`IRadialComparator(IVec center, IVec normal)`
`IRadialComparator(IVec center, IVec normal, IVec startDir)`

Method Summary
`double` | `angle(IVec v)`
`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

### normal

    public IVec normal

### startDir

    public IVec startDir

Constructor Detail

### IRadialComparator

    public IRadialComparator()

### IRadialComparator

    public IRadialComparator(IVec center)

### IRadialComparator

    public IRadialComparator(IVec center,
                             IVec normal)

### IRadialComparator

    public IRadialComparator(IVec center,
                             IVec normal,
                             IVec startDir)

Method Detail

### angle

    public double angle(IVec v)

### compare

    public int compare(IVec v1,
                       IVec v2)

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

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