Module org.dyn4j

Class AbstractCollisionPair<T extends CollisionBody<E>,​E extends Fixture>

    • Constructor Detail

      • AbstractCollisionPair

        public AbstractCollisionPair()
    • Method Detail

      • getHashCode

        public static int getHashCode​(CollisionBody<?> body1,
                                      Fixture fixture1,
                                      CollisionBody<?> body2,
                                      Fixture fixture2)
        Returns the hashcode for a collision pair.
        Parameters:
        body1 - the first body
        fixture1 - the first body's fixture
        body2 - the second body
        fixture2 - the second body's fixture
        Returns:
        int
      • equals

        public static boolean equals​(CollisionPair<?,​?> pairA,
                                     Object obj)
        Returns true if the given pair and object are equal.
        Parameters:
        pairA - the first pair
        obj - the other object
        Returns:
        boolean