Module org.dyn4j

Class BroadphasePair<E extends Collidable<T>,​T extends Fixture>

    • Constructor Detail

      • BroadphasePair

        public BroadphasePair​(E collidable1,
                              T fixture1,
                              E collidable2,
                              T fixture2)
        Minimal constructor.
        Parameters:
        collidable1 - the first collidable
        fixture1 - the first collidable's fixture
        collidable2 - the second collidable
        fixture2 - the second collidable's fixture
    • Method Detail

      • equals

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getCollidable1

        public E getCollidable1()
        Returns the first Collidable.
        Returns:
        E
      • getFixture1

        public T getFixture1()
        Returns the first Fixture.
        Returns:
        T
      • getCollidable2

        public E getCollidable2()
        Returns the second Collidable.
        Returns:
        E
      • getFixture2

        public T getFixture2()
        Returns the second Fixture.
        Returns:
        T