pygorithm icon indicating copy to clipboard operation
pygorithm copied to clipboard

The `quadtree` code is empty at 1.0.4

Open Matt-V50 opened this issue 4 years ago • 0 comments

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.

Matt-V50 avatar Dec 10 '21 09:12 Matt-V50