igeo.gui

## Class ISubsurfaceMesh.EdgePointComparator

- java.lang.Object
- - igeo.gui.ISubsurfaceMesh.EdgePointComparator

- All Implemented Interfaces:
    IComparator<ISubsurfaceMesh.EdgePoint>
  Enclosing class:
    ISubsurfaceMesh

      public static class ISubsurfaceMesh.EdgePointComparator
      extends java.lang.Object
      implements IComparator<ISubsurfaceMesh.EdgePoint>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `ISubsurfaceMesh` | `surf`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `EdgePointComparator(ISubsurfaceMesh subsurf)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(ISubsurfaceMesh.EdgePoint pt1, ISubsurfaceMesh.EdgePoint pt2)`
    `double` | `distanceOnLoop(IVec2 pt)`
    `int` | `edgePointIsOn(IVec2 pt)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### surf

          public ISubsurfaceMesh surf

  - ### Constructor Detail

    - #### EdgePointComparator

          public EdgePointComparator(ISubsurfaceMesh subsurf)

  - ### Method Detail

    - #### edgePointIsOn

          public int edgePointIsOn(IVec2 pt)

      Returns:
        [0-3], 0:bottom edge, 1:right edge, 2:top edge, 3:left edge

    - #### distanceOnLoop

          public double distanceOnLoop(IVec2 pt)

    - #### compare

          public int compare(ISubsurfaceMesh.EdgePoint pt1,
                             ISubsurfaceMesh.EdgePoint pt2)

      Specified by:
        `compare` in interface `IComparator<ISubsurfaceMesh.EdgePoint>`