Module org.dyn4j

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

    • Constructor Detail

      • LazyAABBTreeLeaf

        public LazyAABBTreeLeaf​(E collidable,
                                T fixture)
        Minimal constructor.
        Parameters:
        collidable - the collidable
        fixture - the fixture
    • Method Detail

      • updateAABB

        public void updateAABB()
        Updates the AABB of this leaf
      • mustRemove

        public boolean mustRemove()
        Returns:
        true if this leaf has been marked for removal, false otherwise
      • markForRemoval

        public void markForRemoval()
        Marks that this leaf must be removed
      • setOnTree

        public void setOnTree​(boolean onTree)
        Change the flag denoting if this leaf is on the tree or not
        Parameters:
        onTree - the new flag value
      • isOnTree

        public boolean isOnTree()
        Returns:
        true if this leaf is on the tree, false otherwise
      • 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