~obeancomputer/pyquad

77251eea522a19c1dd5705f9a12da6f6123f9ad2 — ocsmit 1 year, 10 months ago 7b00bd0
Update documentation for BoundingBox object
1 files changed, 22 insertions(+), 0 deletions(-)

M pyquad/geometry_objects.py
M pyquad/geometry_objects.py => pyquad/geometry_objects.py +22 -0
@@ 43,7 43,29 @@ class BoundingBox:
        Center point of bounding box


    Class Methods
    -------------
    from_list(point_list: List[float | int])
        Create BoundingBox object from list of [lx, rx, ty, by]
    from_numpy(array: np.ndarray[Any, Any])
        Create BoundingBox object from Numpy array

    Methods
    -------
    geometry
        Create geojson representation of BoundingBox
    contains(Point)
        Check if Point object is contained within BoundingBox
    mid_point
        Calculates middle coordinates of the BoundingBox
    split -> TiledBoundingBox
        Subdivides the BoundingBox into four equal quadrants
    draw
        Draws bounding box on matplotlib axis
    to_int
        Converts coordinates to integers. Useful for mapping to arrays
    to_ij
        Converts coordinates to an array index starting at [0, 0]
    """

    lx: int | float