Table of Contents

Method TransformShape

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

TransformShape<TPoint>(IEnumerable<TPoint>, Func<TPoint, TPoint>)

Transform each point in the list with the give point transformation.

public static IEnumerable<TPoint> TransformShape<TPoint>(IEnumerable<TPoint> shape, Func<TPoint, TPoint> pointTransformation)

Parameters

shape IEnumerable<TPoint>

List of points of the shape.

pointTransformation Func<TPoint, TPoint>

This function is used to transform all points of the shape.

Returns

IEnumerable<TPoint>

Type Parameters

TPoint

The type of point of the shapes.