Table of Contents

Method GetBiggestShape

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

GetBiggestShape<TPoint>(IEnumerable<IEnumerable<TPoint>>)

Gets the biggest shape (by number of points) in the given list.

public static IEnumerable<TPoint> GetBiggestShape<TPoint>(IEnumerable<IEnumerable<TPoint>> shapes)

Parameters

shapes IEnumerable<IEnumerable<TPoint>>

Each shape is represented as a list of points.

Returns

IEnumerable<TPoint>

Type Parameters

TPoint

The type of point of the shapes.