Function GridGraph.GetRectFromBounds
GetRectFromBounds
(Bounds bounds)
A rect that contains all nodes that the bounds could touch.
Public
IntRect GetRectFromBounds (
bounds |
A rect that contains all nodes that the bounds could touch.
This correctly handles rotated graphs and other transformations. The returned rect is guaranteed to not extend outside the graph bounds.
Note
The rect may contain nodes that are not contained in the bounding box since the bounding box is aligned to the world, and the rect is aligned to the grid (which may be rotated).