Table of Contents

Method Union

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Union(IEnumerable<IImplicitShape<GridPoint2>>)

Creates a 2D Union Shape.

public static IImplicitShape<GridPoint2> Union(IEnumerable<IImplicitShape<GridPoint2>> shapes)

Parameters

shapes IEnumerable<IImplicitShape<GridPoint2>>

List of shapes that can be united.

Returns

IImplicitShape<GridPoint2>

Union<TPoint>(IImplicitShape<TPoint>, IImplicitShape<TPoint>)

Creates a generic Function Shape that works as a Generic Union.

public static IImplicitShape<TPoint> Union<TPoint>(IImplicitShape<TPoint> shape1, IImplicitShape<TPoint> shape2)

Parameters

shape1 IImplicitShape<TPoint>

First shape.

shape2 IImplicitShape<TPoint>

Second shape.

Returns

IImplicitShape<TPoint>

Type Parameters

TPoint

Type of the point.

Union<TPoint>(IEnumerable<IImplicitShape<TPoint>>)

Creates a generic Function Shape that works as a Generic Union.

public static IImplicitShape<TPoint> Union<TPoint>(IEnumerable<IImplicitShape<TPoint>> shapes)

Parameters

shapes IEnumerable<IImplicitShape<TPoint>>

IEnumerable list of shapes.

Returns

IImplicitShape<TPoint>

Type Parameters

TPoint

Type of the point.