net.java.dev.joode.collision.collider
Class RectangleRectangleCollider.FeaturePair

java.lang.Object
  extended by net.java.dev.joode.collision.collider.RectangleRectangleCollider.FeaturePair
Enclosing class:
RectangleRectangleCollider

public static class RectangleRectangleCollider.FeaturePair
extends java.lang.Object

ported from Phys2D, this class was not an inner class, but as only the RectangleCollider seems to use it extensively I have placed it here, though this may need to be moved when more funcionality is ported

Author:
Kevin Glass, ported by Tom Larkworthy

Constructor Summary
RectangleRectangleCollider.FeaturePair()
          Public constructor since something in the raw port want to access it.
RectangleRectangleCollider.FeaturePair(int inEdge1, int inEdge2, int outEdge1, int outEdge2)
          Construct a feature pair and set edges.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 void set(RectangleRectangleCollider.FeaturePair other)
          Set the contents of this pair from another
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RectangleRectangleCollider.FeaturePair

public RectangleRectangleCollider.FeaturePair()
Public constructor since something in the raw port want to access it. Should not be constructed by a user.


RectangleRectangleCollider.FeaturePair

public RectangleRectangleCollider.FeaturePair(int inEdge1,
                                              int inEdge2,
                                              int outEdge1,
                                              int outEdge2)
Construct a feature pair and set edges.

Parameters:
inEdge1 -
outEdge1 -
inEdge2 -
outEdge2 -
Method Detail

hashCode

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

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

set

public void set(RectangleRectangleCollider.FeaturePair other)
Set the contents of this pair from another

Parameters:
other - The other pair to populate this pair from

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()