Table of Contents

Method IsEquivalent

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

IsEquivalent<TPoint>(IEnumerable<TPoint>, IEnumerable<TPoint>)

Checks if two shapes are equivalent. This happen when all shape1 points are contained in shape2 and vice versa.

public static bool IsEquivalent<TPoint>(IEnumerable<TPoint> shape1, IEnumerable<TPoint> shape2)

Parameters

shape1 IEnumerable<TPoint>

List of points of the shape1.

shape2 IEnumerable<TPoint>

List of points of the shape2.

Returns

bool

Type Parameters

TPoint

The type of point of the shapes.