Click or drag to resize

AlgorithmsGetLongestConnectedLineTCell, TPoint, TBasePoint Method

Get the longest line of points connected to the given point

Namespace:  Gamelogic.Grids
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IEnumerable<TPoint> GetLongestConnectedLine<TCell, TPoint, TBasePoint>(
	IEvenGrid<TCell, TPoint, TBasePoint> grid,
	TPoint point,
	Func<TPoint, TPoint, bool> isNeighborsConnected
)
where TPoint : Object, ISplicedVectorPoint<TPoint, TBasePoint>, IGridPoint<TPoint>
where TBasePoint : Object, IVectorPoint<TBasePoint>, IGridPoint<TBasePoint>

Parameters

grid
Type: Gamelogic.GridsIEvenGridTCell, TPoint, TBasePoint
point
Type: TPoint
isNeighborsConnected
Type: SystemFuncTPoint, TPoint, Boolean

Type Parameters

TCell
The type of cell of the grid that this algorithm takes.
TPoint
The type of point of the grid that this algorithm takes.
TBasePoint
The base type of the point.

Return Value

Type: IEnumerableTPoint
See Also