Table of Contents

Method Product

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Product(IExplicitShape<int>, IImplicitShape<int>, int)

Creates a 1D Product Shape using another shape and a scale factor.

public static IImplicitShape<int> Product(this IExplicitShape<int> shape1, IImplicitShape<int> shape2, int scale)

Parameters

shape1 IExplicitShape<int>

Base shape to be process.

shape2 IImplicitShape<int>

Shape used to process the shape1.

scale int

Scale factor apply to the shape2 before making the product operation.

Returns

IImplicitShape<int>

Product(IExplicitShape<GridPoint2>, IImplicitShape<GridPoint2>, GridPoint2)

Creates a 2D Product Shape.

public static IImplicitShape<GridPoint2> Product(this IExplicitShape<GridPoint2> shape1, IImplicitShape<GridPoint2> shape2, GridPoint2 scale)

Parameters

shape1 IExplicitShape<GridPoint2>

Base shape to make the product operation.

shape2 IImplicitShape<GridPoint2>

Shape used for the product operation.

scale GridPoint2

Scale factor applied to the shape2.

Returns

IImplicitShape<GridPoint2>

Product(IExplicitShape<GridPoint3>, IImplicitShape<GridPoint3>, GridPoint3)

Creates a shape that is the product of this shape with another shape.

public static IImplicitShape<GridPoint3> Product(this IExplicitShape<GridPoint3> shape1, IImplicitShape<GridPoint3> shape2, GridPoint3 scale)

Parameters

shape1 IExplicitShape<GridPoint3>
shape2 IImplicitShape<GridPoint3>
scale GridPoint3

Returns

IImplicitShape<GridPoint3>

Remarks

Takes the first shape, and for each point, scale that point by the given amount, and create a copy of the second shape at that point. The combined shape is the product of the two shapes.