Table of Contents

Method Contains

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Contains<TPoint>(IEnumerable<TPoint>, IEnumerable<TPoint>)

Checks whether all the points in smallShape are contained in the bigShape.

public static bool Contains<TPoint>(IEnumerable<TPoint> bigShape, IEnumerable<TPoint> smallShape)

Parameters

bigShape IEnumerable<TPoint>

List of point representing the big shape.

smallShape IEnumerable<TPoint>

List of point representing the small shape.

Returns

bool

Type Parameters

TPoint

The type of point of the shapes.