Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The quadtree code is empty at 1.0.4 #106

Open
FavorMylikes opened this issue Dec 10, 2021 · 0 comments
Open

The quadtree code is empty at 1.0.4 #106

FavorMylikes opened this issue Dec 10, 2021 · 0 comments

Comments

@FavorMylikes
Copy link

After

pip install https://github.com/OmkarPathak/pygorithm/releases/download/v1.0.4/pygorithm-1.0.4-py2.py3-none-any.whl

I can not import QuadTreeEntity from anywhere,

So I checked the code at pygorithm\data_structures\quadtree.py in site-packages

Here is what I got

"""
Author: Timothy Moore
Created On: 31th August 2017

Defines a two-dimensional quadtree of arbitrary
depth and bucket size.
"""
import inspect

from pygorithm.geometry import (vector2, polygon2, rect2)

class QuadTree(object):
    """
    A quadtree is a sorting tool for two-dimensional space, most
    commonly used to reduce the number of required collision 
    calculations in a two-dimensional scene. In this context, 
    the scene is stepped without collision detection, then a 
    quadtree is constructed from all of the boundaries
    """
    @staticmethod
    def get_code():
        """
        Get the code for the QuadTree class
        
        :returns: code for QuadTree
        :rtype: string
        """
        return inspect.getsource(QuadTree)

Is there anything I missed?

btw, the source_code.zip is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant