maspack.collision
Class SurfaceMeshContourIxer.EdgeFacePair

java.lang.Object
  extended by maspack.collision.SurfaceMeshContourIxer.EdgeFacePair
Enclosing class:
SurfaceMeshContourIxer

public static class SurfaceMeshContourIxer.EdgeFacePair
extends java.lang.Object

Static Inner Class for holding an Edge-Face pair. This class will ALWAYS store the primary half-edge, no matter what is passed to the constructor. This class is immutable, and overrides equals/hashcode to test if myEdge.equals(other.myEdge) and myFace.equals(other.myFace).

Author:
andrew

Constructor Summary
SurfaceMeshContourIxer.EdgeFacePair(HalfEdge e, Face f)
          Create an edge-face pair
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 HalfEdge getEdge()
           
 Face getFace()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfaceMeshContourIxer.EdgeFacePair

public SurfaceMeshContourIxer.EdgeFacePair(HalfEdge e,
                                           Face f)
Create an edge-face pair

Parameters:
e - edge (primary or secondary, only primary is stored)
f - face
Method Detail

getEdge

public HalfEdge getEdge()

getFace

public Face getFace()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object