igeo.gui
Class ISubsurfaceMesh.EdgePointComparator

java.lang.Object
  extended by 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
 ISubsurfaceMesh surf
           
 
Constructor Summary
ISubsurfaceMesh.EdgePointComparator(ISubsurfaceMesh subsurf)
           
 
Method Summary
 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

ISubsurfaceMesh.EdgePointComparator

public ISubsurfaceMesh.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>