Skip to content

The quadtree code is empty at 1.0.4 #106

Open
@Matt-V50

Description

@Matt-V50

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions