Table of Contents

Method GetBounds

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

GetBounds(IEnumerable<int>)

Gets the bounds of the given points.

[Version(2, 3, 0)]
public static GridInterval GetBounds(IEnumerable<int> points)

Parameters

points IEnumerable<int>

Returns

GridInterval

Remarks

The bounds are guaranteed to be tight, that is no smaller bounds will contain the shape.

GetBounds(IEnumerable<GridPoint2>)

Gets the bounds of the given points.

[Version(2, 3, 0)]
public static GridRect GetBounds(IEnumerable<GridPoint2> points)

Parameters

points IEnumerable<GridPoint2>

Returns

GridRect

Remarks

The bounds are guaranteed to be tight, that is no smaller bounds will contain the shape.

GetBounds(IEnumerable<GridPoint3>)

Gets the bounds of the given points.

[Version(2, 3, 0)]
public static GridBounds GetBounds(IEnumerable<GridPoint3> points)

Parameters

points IEnumerable<GridPoint3>

Returns

GridBounds

Remarks

The bounds are guaranteed to be tight, that is no smaller bounds will contain the shape.