Function GridGraph.GetBoundsFromRect
GetBoundsFromRect
(IntRect rect)
Bounding box in world space which encapsulates all nodes in the given rectangle.
Public
Bounds GetBoundsFromRect (
rect | Which nodes to consider. Will be clamped to the grid's bounds. If the rectangle is outside the graph, an empty bounds will be returned. |
Bounding box in world space which encapsulates all nodes in the given rectangle.
The bounding box will cover all nodes' surfaces completely. Not just their centers.
Note
The bounding box may not be particularly tight if the graph is not axis-aligned.