public double height(Bounds bounds)

Return the height of the given bounds

public double width(Bounds bounds)

Return the width of the given bounds

public bool withinBounds(
    Bounds bounds, 
    Point point)

Is the point within the Bounds

public bool validBounds(Point[] points)

Can we construct valid bounds given these points

public Bounds minimalBounds(Point[] points)

Return minimal bounds size containing those points

public Bounds adjustedBounds(
    Bounds bounds, 
    Point point)

Returns adjust bounds based on given bounds to include point

Functions

height

Return the height of the given bounds

width

Return the width of the given bounds

withinBounds

Is the point within the Bounds

validBounds

Can we construct valid bounds given these points

minimalBounds

Return minimal bounds size containing those points

adjustedBounds

Returns adjust bounds based on given bounds to include point

Structs

Point

Point with x and y value

Bounds

Bounds struct holding the bounds (min_x, max_x, min_y, max_y)

AdaptiveBounds

Bounds that can adapt to new points being passed